21 #ifndef OLAD_UNIVERSESTORE_H_
22 #define OLAD_UNIVERSESTORE_H_
29 #include "ola/Clock.h"
41 Universe *GetUniverse(
unsigned int universe_id)
const;
42 Universe *GetUniverseOrCreate(
unsigned int universe_id);
44 unsigned int UniverseCount()
const {
return m_universe_map.size(); }
45 void GetList(std::vector<Universe*> *universes)
const;
48 void AddUniverseGarbageCollection(
Universe *universe);
49 void GarbageCollectUniverses();
52 typedef std::map<unsigned int, Universe*> universe_map;
57 universe_map m_universe_map;
58 std::set<Universe*> m_deletion_candiates;
62 bool RestoreUniverseSettings(
Universe *universe)
const;
63 bool SaveUniverseSettings(
Universe *universe)
const;
65 static const unsigned int MINIMUM_RDM_DISCOVERY_INTERVAL;
70 #endif // OLAD_UNIVERSESTORE_H_