21 #ifndef OLAD_PLUGIN_API_UNIVERSESTORE_H_ 22 #define OLAD_PLUGIN_API_UNIVERSESTORE_H_ 29 #include "ola/Clock.h" 77 void GetList(std::vector<Universe*> *universes)
const;
96 typedef std::map<unsigned int, Universe*> UniverseMap;
100 UniverseMap m_universe_map;
101 std::set<Universe*> m_deletion_candidates;
105 bool RestoreUniverseSettings(
Universe *universe)
const;
106 bool SaveUniverseSettings(
Universe *universe)
const;
108 static const unsigned int MINIMUM_RDM_DISCOVERY_INTERVAL;
113 #endif // OLAD_PLUGIN_API_UNIVERSESTORE_H_ unsigned int UniverseCount() const
Return the number of universes.
Definition: UniverseStore.h:70
Definition: Universe.h:46
UniverseStore(class Preferences *preferences, class ExportMap *export_map)
Create a new UniverseStore.
Definition: UniverseStore.cpp:47
A container for the exported variables.
Definition: ExportMap.h:324
Universe * GetUniverse(unsigned int universe_id) const
Lookup a universe from its universe-id.
Definition: UniverseStore.cpp:74
Maintains a collection of Universe objects.
Definition: UniverseStore.h:39
Universe * GetUniverseOrCreate(unsigned int universe_id)
Lookup a universe, or create it if it does not exist.
Definition: UniverseStore.cpp:78
void GetList(std::vector< Universe *> *universes) const
Returns a list of universes. This must be freed when you're done with it.
Definition: UniverseStore.cpp:96
void DeleteAll()
Delete all universes.
Definition: UniverseStore.cpp:100
Used to get the current time.
Definition: Clock.h:242
void AddUniverseGarbageCollection(Universe *universe)
Mark a universe as a candidate for garbage collection.
Definition: UniverseStore.cpp:111
Definition: Preferences.h:147
~UniverseStore()
Destructor.
Definition: UniverseStore.cpp:70
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
void GarbageCollectUniverses()
Garbage collect any pending universes.
Definition: UniverseStore.cpp:115