summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataSource.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-12 18:53:54 +0200
committerAki <please@ignore.pl>2022-04-12 18:53:54 +0200
commitcbc7d648a83274c87a2d3796a2877adc8c48cb42 (patch)
tree12a981594d8c084464048b86c63a6a9fc0d25457 /StarsEx/DataSource.h
parent9c1439b0e5e1c90723c0f2f6e22a24a935623542 (diff)
downloadstarshatter-cbc7d648a83274c87a2d3796a2877adc8c48cb42.zip
starshatter-cbc7d648a83274c87a2d3796a2877adc8c48cb42.tar.gz
starshatter-cbc7d648a83274c87a2d3796a2877adc8c48cb42.tar.bz2
Added a way to weak reference sources without any dependencies
Diffstat (limited to 'StarsEx/DataSource.h')
-rw-r--r--StarsEx/DataSource.h3
1 files changed, 3 insertions, 0 deletions
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;
};