EventAnalysis  1.3.0
Public Member Functions | Private Types | Private Attributes | List of all members
EA::PersistenceServiceManager Class Reference

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< PersistencePtrGetPersistences ()
 Get all the persistence services. More...
 
std::vector< PersistencePtrGetTemplatePersistences ()
 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
 

Detailed Description

Manager class for persistence services.

This class works as a locator for persistence services.

Member Typedef Documentation

◆ PersistenceServices

typedef std::list<std::unique_ptr<PersistenceService> > EA::PersistenceServiceManager::PersistenceServices
private

Member Function Documentation

◆ AddPersistence()

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.

Parameters
persistenceservice The persistence service to be added.
Returns
true if the given persistence service has been added, false otherwise.

◆ AddTemplatePersistence()

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.

Parameters
persistenceservice The persistence service to be added.
Returns
true if the given template persistence service has been added, false otherwise.

◆ BeginOfEvent()

bool EA::PersistenceServiceManager::BeginOfEvent ( )

Notifies begin of event to all the persistence services.

◆ BeginOfPass()

bool EA::PersistenceServiceManager::BeginOfPass ( )

Notifies begin of pass to all the persistence services.

◆ BeginOfProcessing()

bool EA::PersistenceServiceManager::BeginOfProcessing ( )

Notifies begin of processing to all the persistence services.

◆ Connect()

bool EA::PersistenceServiceManager::Connect ( )

Connects all the persistence services.

◆ Disconnect()

bool EA::PersistenceServiceManager::Disconnect ( )

Disconnect all the persistence services.

◆ EndOfEvent()

bool EA::PersistenceServiceManager::EndOfEvent ( )

Notifies end of event to all the persistence services.

◆ EndOfPass()

bool EA::PersistenceServiceManager::EndOfPass ( )

Notifies end of pass to all the persistence services.

◆ EndOfProcessing()

bool EA::PersistenceServiceManager::EndOfProcessing ( )

Notifies end of processing to all the persistence services.

◆ GetPersistence()

PersistencePtr EA::PersistenceServiceManager::GetPersistence ( const std::string &  name)

Get a given persistence service.

Parameters
nameThe name of the requested persistence service.
Returns
pointer to the requested persistence service.

◆ GetPersistences()

std::vector< PersistencePtr > EA::PersistenceServiceManager::GetPersistences ( )

Get all the persistence services.

Returns
a list of pointers to the persistence services.

◆ GetTemplatePersistences()

std::vector< PersistencePtr > EA::PersistenceServiceManager::GetTemplatePersistences ( )

Get all the templatepersistence services.

Returns
a list of pointers to the persistence services.

◆ SetDataStoreManager()

bool EA::PersistenceServiceManager::SetDataStoreManager ( observer_ptr< DataStoreManager dsManager)

Sets the data store manager for all the persistence services.

Member Data Documentation

◆ _persServices

PersistenceServices EA::PersistenceServiceManager::_persServices
private

◆ _templPersServices

PersistenceServices EA::PersistenceServiceManager::_templPersServices
private

The documentation for this class was generated from the following files: