EventAnalysis
1.3.0
|
Manager class for persistence services. More...
#include <PersistenceServiceManager.h>
Public Member Functions | |
bool | AddPersistence (std::unique_ptr< PersistenceService > persistenceService) |
Add a persistence service to the manager. More... | |
bool | AddTemplatePersistence (std::unique_ptr< PersistenceService > persistenceService) |
Add a template persistence service to the manager. More... | |
PersistencePtr | GetPersistence (const std::string &name) |
Get a given persistence service. More... | |
std::vector< PersistencePtr > | GetPersistences () |
Get all the persistence services. More... | |
std::vector< PersistencePtr > | GetTemplatePersistences () |
Get all the templatepersistence services. More... | |
bool | SetDataStoreManager (observer_ptr< DataStoreManager > dsManager) |
Sets the data store manager for all the persistence services. More... | |
bool | Connect () |
Connects all the persistence services. More... | |
bool | Disconnect () |
Disconnect all the persistence services. More... | |
bool | BeginOfEvent () |
Notifies begin of event to all the persistence services. More... | |
bool | EndOfEvent () |
Notifies end of event to all the persistence services. More... | |
bool | BeginOfPass () |
Notifies begin of pass to all the persistence services. More... | |
bool | EndOfPass () |
Notifies end of pass to all the persistence services. More... | |
bool | BeginOfProcessing () |
Notifies begin of processing to all the persistence services. More... | |
bool | EndOfProcessing () |
Notifies end of processing to all the persistence services. More... | |
Private Types | |
typedef std::list< std::unique_ptr< PersistenceService > > | PersistenceServices |
Private Attributes | |
PersistenceServices | _persServices |
PersistenceServices | _templPersServices |
Manager class for persistence services.
This class works as a locator for persistence services.
|
private |
bool EA::PersistenceServiceManager::AddPersistence | ( | std::unique_ptr< PersistenceService > | persistenceService | ) |
Add a persistence service to the manager.
The given persistence service is added to the list of providers managed by the DataProviderManager no persistence service with the same name has already been added.
persistence | service The persistence service to be added. |
bool EA::PersistenceServiceManager::AddTemplatePersistence | ( | std::unique_ptr< PersistenceService > | persistenceService | ) |
Add a template persistence service to the manager.
The given persistence service will not be processed as an ordinary service, but only used to configure an eventual #PersistenceAlgo making use of it.
persistence | service The persistence service to be added. |
bool EA::PersistenceServiceManager::BeginOfEvent | ( | ) |
Notifies begin of event to all the persistence services.
bool EA::PersistenceServiceManager::BeginOfPass | ( | ) |
Notifies begin of pass to all the persistence services.
bool EA::PersistenceServiceManager::BeginOfProcessing | ( | ) |
Notifies begin of processing to all the persistence services.
bool EA::PersistenceServiceManager::Connect | ( | ) |
Connects all the persistence services.
bool EA::PersistenceServiceManager::Disconnect | ( | ) |
Disconnect all the persistence services.
bool EA::PersistenceServiceManager::EndOfEvent | ( | ) |
Notifies end of event to all the persistence services.
bool EA::PersistenceServiceManager::EndOfPass | ( | ) |
Notifies end of pass to all the persistence services.
bool EA::PersistenceServiceManager::EndOfProcessing | ( | ) |
Notifies end of processing to all the persistence services.
PersistencePtr EA::PersistenceServiceManager::GetPersistence | ( | const std::string & | name | ) |
Get a given persistence service.
name | The name of the requested persistence service. |
std::vector< PersistencePtr > EA::PersistenceServiceManager::GetPersistences | ( | ) |
Get all the persistence services.
std::vector< PersistencePtr > EA::PersistenceServiceManager::GetTemplatePersistences | ( | ) |
Get all the templatepersistence services.
bool EA::PersistenceServiceManager::SetDataStoreManager | ( | observer_ptr< DataStoreManager > | dsManager | ) |
Sets the data store manager for all the persistence services.
|
private |
|
private |