DataId.h 353 B

1234567891011121314151617181920212223242526
  1. #ifndef DATAID_H
  2. #define DATAID_H
  3. #include <string>
  4. namespace DataStorage {
  5. class DataId
  6. {
  7. public:
  8. DataId(const std::string& dataName);
  9. int Id() const;
  10. std::string Table() const;
  11. private:
  12. int GetId(const std::string& dataName) const;
  13. private:
  14. std::string m_table;
  15. };
  16. } // namespace DataStorage
  17. #endif // DATAID_H