Config.h 579 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This is the source code of tgnet library v. 1.1
  3. * It is licensed under GNU GPL v. 2 or later.
  4. * You should have received a copy of the license in this archive (see LICENSE).
  5. *
  6. * Copyright Nikolai Kudashov, 2015-2018.
  7. */
  8. #ifndef CONFIG_H
  9. #define CONFIG_H
  10. #include <string>
  11. #include "NativeByteBuffer.h"
  12. class Config {
  13. public:
  14. Config(int32_t instance, std::string fileName);
  15. NativeByteBuffer *readConfig();
  16. void writeConfig(NativeByteBuffer *buffer);
  17. private:
  18. int32_t instanceNum;
  19. std::string configPath;
  20. std::string backupPath;
  21. };
  22. #endif