|
| PersistenceService (const std::string &name, const std::string &output) |
|
virtual | ~PersistenceService () |
|
const std::string & | GetOutput () |
|
virtual bool | Connect () |
|
virtual bool | Disconnect () |
|
virtual bool | BookEventObject (const std::string &objName, const std::string &objStore) |
| Books an event object for persistence. More...
|
|
virtual bool | BookPassObject (const std::string &objName, const std::string &objStore) |
|
virtual bool | BookGlobalObject (const std::string &objName, const std::string &objStore) |
|
virtual std::vector< BookedObject > | GetBookedEventObjects () |
| Gets the list of booked event objects. More...
|
|
virtual std::vector< BookedObject > | GetBookedPassObjects () |
| Gets the list of booked pass objects. More...
|
|
virtual std::vector< BookedObject > | GetBookedGlobalObjects () |
| Gets the list of booked global objects. More...
|
|
virtual bool | BeginOfEvent () |
|
virtual bool | EndOfEvent () |
| Save event objects on persistence medium. More...
|
|
virtual bool | BeginOfPass () |
|
virtual bool | EndOfPass () |
|
virtual bool | BeginOfProcessing () |
|
virtual bool | EndOfProcessing () |
|
virtual std::unique_ptr< PersistenceService > | Copy (const std::string &name, const std::string &output) |
| Creates a copy of the persistence service. More...
|
|
| Info (const std::string &name) |
| Constructor. More...
|
|
virtual | ~Info () |
| Destructor. More...
|
|
virtual const std::string | GetType () const |
|
virtual const std::string | GetName () const |
| The type (i.e. class) of the object. More...
|
|
virtual const std::string | GetVersion () const |
| The name of the object. More...
|
|
| Configurable () |
| Constructor. More...
|
|
template<typename T > |
bool | SetParameter (const std::string &name, const T &value) |
| Set the value of a parameter. More...
|
|
bool | SetParameter (const std::string &name, const char *value) |
| Set the value of a string parameter using a string literal. More...
|
|
std::vector< std::string > | GetParameters () |
| Get the names of the parameters. More...
|
|
| DataStoreUser () |
|
virtual | ~DataStoreUser () |
| Destructor. More...
|
|
virtual bool | SetDataStoreManager (observer_ptr< DataStoreManager > dsManager) |
| Injector for dependency on DataStoreManager. More...
|
|
observer_ptr< DataStoreManager > | GetDataStoreManager () |
| Getter for the Data store manager. More...
|
|
| ObjectConsumer () |
| Constructor. More...
|
|
void | DeclareConsumedObject (std::string name, ObjectCategory category, std::string store, bool optional=false) |
| Declare a consumed objects. More...
|
|
void | DeclareAlternative (const std::string &name, ObjectCategory category, std::string store, const std::string &alternativeName, ObjectCategory alternativeCategory, std::string alternativeStore) |
| Declares two already declared objects as alternatives. More...
|
|
const ConsumedObjects & | GetConsumedObjects () const |
| Getter method for consumed objects. More...
|
|
virtual std::unique_ptr<PersistenceService> EA::PersistenceService::Copy |
( |
const std::string & |
name, |
|
|
const std::string & |
output |
|
) |
| |
|
inlinevirtual |
Creates a copy of the persistence service.
This method returns a copy of the persistence service, with different name and output. This method should be overridden in derived classes if the copy of the persistence is foreseen; the default implementation simply throws an exception for avoiding a silent misuse.
Overrides of this method in derived classes must return a copied service configured exactly as the original one (e.g. with the same booked objects and parameter values) but not connected to the output, i.e. a configured and ready-to-use but pristine service. The user should then take care of calling Connect etc.
- Parameters
-
name | The name of the copied persistence service. |
output | The output of the copied persistence service. |
- Returns
- a pointer to the copied persistence service.
- Exceptions
-
Reimplemented in EA::RootPersistenceService.