GroupStatePersistence.h 443 B

12345678910111213141516171819202122232425
  1. #include <GroupState.h>
  2. #ifndef _GROUP_STATE_PERSISTENCE_H
  3. #define _GROUP_STATE_PERSISTENCE_H
  4. struct PersistedStateNode {
  5. GroupState state;
  6. GroupId next;
  7. GroupId prev;
  8. };
  9. class GroupStatePersistence {
  10. public:
  11. void get(const GroupId& id, GroupState& state);
  12. void set(const GroupId& id, const GroupState& state);
  13. void clear(const GroupId& id);
  14. private:
  15. static char* buildFilename(const GroupId& id, char* buffer);
  16. };
  17. #endif