summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/DataSource.cpp')
-rw-r--r--StarsEx/DataSource.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/StarsEx/DataSource.cpp b/StarsEx/DataSource.cpp
index 06c7658..1618171 100644
--- a/StarsEx/DataSource.cpp
+++ b/StarsEx/DataSource.cpp
@@ -18,9 +18,13 @@
using Group = DataSource::Group;
+int DataSource::s_next_id {0};
+
+
DataSource::DataSource(Group group) :
m_prefix {""},
- m_group {group}
+ m_group {group},
+ m_id {s_next_id++}
{
}
@@ -30,6 +34,13 @@ DataSource::~DataSource()
}
+int
+DataSource::Id() const
+{
+ return m_id;
+}
+
+
Group
DataSource::GetGroup() const
{