#include <emcManageable.h>
Inherits emcNamed.
Inherited by emcCalFEM, emcCalibrationData, emcConfigurationFile, emcFEMtuple, emcGeometry, emcRejectList, and emcTimeStamp.
Inheritance diagram for emcManageable:
It allows to define data source and data destination. The GetCategory pure virtual method must be overriden in child classes and give a name which can be used to find the correct database or file basename for a given object type.
Definition at line 23 of file emcManageable.h.
Public Types | |
enum | EStorage { kNone = -1, kDB_Objy, kFile_ASCII, kDB_Construction, kDB_Pg } |
Storage type. More... | |
Public Member Functions | |
emcManageable () | |
Default ctor. | |
emcManageable (const char *name, const char *title, const char *classname) | |
Ctor with name, title and classname (required). | |
virtual | ~emcManageable () |
Dtor (does nothing). | |
emcManageable (const emcManageable &obj) | |
Copy ctor. | |
emcManageable & | operator= (const emcManageable &obj) |
Assignment operator. | |
virtual const char * | GetCategory (void) const =0 |
Category of the object = GAIN,PED,HL,etc. | |
EStorage | GetDestination (void) const |
Get the storage destination. | |
EStorage | GetSource (void) const |
Get the storage origine. | |
virtual bool | IsValid (const PHTimeStamp &) const |
Tells if this object is still valid at that time. | |
virtual void | Reset (void) |
Reset the object. | |
virtual void | SetDestination (emcManageable::EStorage destination) |
Set the storage destination. | |
virtual void | SetSource (emcManageable::EStorage origine) |
Set the storage origine. | |
Static Public Member Functions | |
static const char * | GetStorageName (emcManageable::EStorage storage) |
Get storage name from enum number. | |
static emcManageable::EStorage | GetStorage (const char *storagename) |
Get storage enum value from storage name. | |
Protected Member Functions | |
void | Copy (emcNamed &obj) const |
Private Attributes | |
EStorage | fDestination |
EStorage | fSource |
|
Storage type.
Definition at line 29 of file emcManageable.h. |
|
Default ctor.
Definition at line 43 of file emcManageable.h. |
|
Ctor with name, title and classname (required).
Definition at line 47 of file emcManageable.h. |
|
Dtor (does nothing).
Definition at line 52 of file emcManageable.h. |
|
Copy ctor.
Definition at line 56 of file emcManageable.h. References Copy(). |
|
Reimplemented from emcNamed. Definition at line 155 of file emcManageable.h. References emcNamed::Copy(), fDestination, and fSource. Referenced by emcGeometry::Copy(), emcManageable(), and operator=(). |
|
Category of the object = GAIN,PED,HL,etc. .. This category is used to determine the top-level container of this object in the database. Implemented in emcConfigurationFile, emcCalibrationData, emcGeometry, emcCalFEM, emcGainFEM, emcGains, emcHLRatioFEM, emcHLRatios, emcLCTofFEM, emcLCTofs, emcPedestalFEM, emcPedestals, emcPedestals5, emcQAFEM, emcQAs, emcRejectList, emcTacPedFEM, emcTacPeds, emcTimeStamp, emcTofT0FEM, emcTofT0s, emcTracedFEM, emcWalkTofFEM, and emcWalkTofs. Referenced by emcFEMtuple::AppendFEM(). |
|
|
|
Get storage enum value from storage name.
Definition at line 95 of file emcManageable.h. References kDB_Construction, kDB_Objy, kDB_Pg, kFile_ASCII, kNone, and name. Referenced by emcDBMS::set(), and emcDataStorageMap::storage(). |
|
|
Tells if this object is still valid at that time.
Reimplemented in emcConfigurationFile, emcCalibrationData, emcGeometry, emcCalFEM, and emcFEMtuple. Definition at line 132 of file emcManageable.h. |
|
Assignment operator.
Definition at line 62 of file emcManageable.h. References Copy(). |
|
Reset the object.
Reimplemented in emcConfigurationFile, emcCalibrationData, emcGeometry, emcCalFEM, emcFEMtuple, emcHLRatioFEM, emcLCTofFEM, emcPedestalFEM, emcQAFEM, emcRejectList, emcTracedFEM, and emcWalkTofFEM. Definition at line 138 of file emcManageable.h. |
|
Set the storage destination.
Definition at line 142 of file emcManageable.h. References fDestination. Referenced by calfemCheckList(), and emcBadNormt::process(). |
|
|
Definition at line 164 of file emcManageable.h. Referenced by Copy(), GetDestination(), and SetDestination(). |
|
Definition at line 165 of file emcManageable.h. Referenced by Copy(), GetSource(), and SetSource(). |