fesa-core  4.2.0
fesa::StoreManager Class Reference

this class is responsible for storing and restoring devices of a class from a persistency mechanism More...

#include <StoreManager.h>

Public Member Functions

 StoreManager (const std::string &hostName)
 
 ~StoreManager ()
 destructor
 
void restore (const std::string &persistenceFile, GlobalDevice &globalDevice, std::vector< AbstractDevice * > &deviceCol, std::vector< DomainStore * > &domainStoreCol, const std::string &className)
 this method fills the objects passed as parameters with the information in the persistent system of the equipment More...
 
void store (PersistencyUnit &persistencyUnit)
 this method makes stores the information about the data stores contained in the persistent unit passed by parameter More...
 

Detailed Description

this class is responsible for storing and restoring devices of a class from a persistency mechanism

Constructor & Destructor Documentation

fesa::StoreManager::StoreManager ( const std::string &  hostName)
Parameters
hostNamethe current hostName. This is written in persistence files for information.

Member Function Documentation

void fesa::StoreManager::restore ( const std::string &  persistenceFile,
GlobalDevice globalDevice,
std::vector< AbstractDevice * > &  deviceCol,
std::vector< DomainStore * > &  domainStoreCol,
const std::string &  className 
)

this method fills the objects passed as parameters with the information in the persistent system of the equipment

Parameters
persistenceFilepersistence file to use
globalDeviceof the class
deviceColdevices of the class
domainColdomain stores of the class
classNameto access the persistent system
void fesa::StoreManager::store ( PersistencyUnit &  persistencyUnit)

this method makes stores the information about the data stores contained in the persistent unit passed by parameter

Parameters
persistencyUnitcontaining the DataStore objects that will be stored

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