summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataSource.h
diff options
context:
space:
mode:
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;
};