From cbc7d648a83274c87a2d3796a2877adc8c48cb42 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 12 Apr 2022 18:53:54 +0200 Subject: Added a way to weak reference sources without any dependencies --- StarsEx/DataSource.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'StarsEx/DataSource.h') diff --git a/StarsEx/DataSource.h b/StarsEx/DataSource.h index 5dbc1d7..cc69870 100644 --- a/StarsEx/DataSource.h +++ b/StarsEx/DataSource.h @@ -24,6 +24,7 @@ public: explicit DataSource(Group group=Group::DEFAULT); virtual ~DataSource(); + int Id() const; Group GetGroup() const; void SetPrefix(const char* prefix=nullptr); @@ -34,6 +35,8 @@ public: protected: Text m_prefix; Group m_group; + const int m_id; + static int s_next_id; }; -- cgit v1.1