EventAnalysis
1.3.0
|
Manager class for event data cache objects. More...
#include <EventDataCacheManager.h>
Public Member Functions | |
bool | AddCache (std::unique_ptr< EventDataCache > cache) |
Adds a cache to the manager. More... | |
observer_ptr< EventDataCache > | GetCache (const std::string &storeName) |
Retrieves the cache attached at the given event data store. More... | |
bool | SetCurrentEvent (unsigned int event) |
Sets the current event for all the caches. More... | |
bool | CacheValues () |
Caches all the booked objects for all the caches. More... | |
bool | Unbook () |
Unbooks all the booked objects for all the caches. More... | |
bool | Clean () |
Cleans all the caches. More... | |
Private Types | |
using | Caches = std::list< std::unique_ptr< EventDataCache > > |
Private Attributes | |
Caches | _caches |
Manager class for event data cache objects.
This class dispatches common commands to all the registered cache objects.
|
private |
bool EA::EventDataCacheManager::AddCache | ( | std::unique_ptr< EventDataCache > | cache | ) |
Adds a cache to the manager.
cache | The cache object to be added |
bool EA::EventDataCacheManager::CacheValues | ( | ) |
Caches all the booked objects for all the caches.
bool EA::EventDataCacheManager::Clean | ( | ) |
Cleans all the caches.
observer_ptr< EventDataCache > EA::EventDataCacheManager::GetCache | ( | const std::string & | storeName | ) |
Retrieves the cache attached at the given event data store.
storeName | The name of the event data store. |
bool EA::EventDataCacheManager::SetCurrentEvent | ( | unsigned int | event | ) |
Sets the current event for all the caches.
event | The current event |
bool EA::EventDataCacheManager::Unbook | ( | ) |
Unbooks all the booked objects for all the caches.
|
private |