emcOMGeometryT< BM > Class Template Reference
[DataManager Plugins]

#include <emcOMGeometryT.h>

Inherits emcObjectManager.

Inheritance diagram for emcOMGeometryT< BM >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BM>
class emcOMGeometryT< BM >

(Template) Plugin class for emcGeometry objects.

Definition at line 22 of file emcOMGeometryT.h.

Public Member Functions

 emcOMGeometryT (const char *name="", const char *title="")
virtual ~emcOMGeometryT ()
virtual bool CanCollect (const emcManageable &object) const
 Can we collect such object ?
virtual bool CanWrite (const emcManageable &object) const
 Can we write a given object type ?
virtual bool CanRead (const emcManageable &object) const
 Can we read a given object type ?
virtual emcManageableCollect (const emcManageable &object, const PHTimeStamp &when)
 Collect a manageable from the DB.
virtual bool Read (emcManageable &object, const PHTimeStamp &time_stamp, int id)
 Read a manageable object from the DB.
virtual void Reset (void)
 Reset the OM.
virtual bool Write (const emcManageable &object, const PHTimeStamp &tStart, int id=-1)
 Write a manageable object to the DB.

Private Attributes

emcGeometryfGeometry
BM * fBM

Classes

class  changeName


Constructor & Destructor Documentation

template<class BM>
emcOMGeometryT< BM >::emcOMGeometryT const char *  name = "",
const char *  title = ""
 

Definition at line 118 of file emcOMGeometryT.h.

template<class BM>
emcOMGeometryT< BM >::~emcOMGeometryT  )  [virtual]
 

Definition at line 127 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::Reset().


Member Function Documentation

template<class BM>
bool emcOMGeometryT< BM >::CanCollect const emcManageable object  )  const [virtual]
 

Can we collect such object ?

Reimplemented from emcObjectManager.

Definition at line 136 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::CanRead().

template<class BM>
bool emcOMGeometryT< BM >::CanRead const emcManageable object  )  const [virtual]
 

Can we read a given object type ?

Reimplemented from emcObjectManager.

Definition at line 168 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::fBM, and emcManageable::GetSource().

Referenced by emcOMGeometryT< BM >::CanCollect().

template<class BM>
bool emcOMGeometryT< BM >::CanWrite const emcManageable object  )  const [virtual]
 

Can we write a given object type ?

Reimplemented from emcObjectManager.

Definition at line 145 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::fBM, and emcManageable::GetDestination().

template<class BM>
emcManageable * emcOMGeometryT< BM >::Collect const emcManageable object,
const PHTimeStamp &  when
[virtual]
 

Collect a manageable from the DB.

\ See the DM interface for parameters.\ Unless allowed explicitely by a particular Object Manager,\ in general the returned pointer { should not be deleted} by\ the receiver !

Reimplemented from emcObjectManager.

Definition at line 191 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::fGeometry, and emcGeometry::IsValid().

template<class BM>
bool emcOMGeometryT< BM >::Read emcManageable object,
const PHTimeStamp &  time_stamp,
int  id
[virtual]
 

Read a manageable object from the DB.

\ See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 222 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::fBM, emcGeometry::GetCategory(), emcGeometry::MaxNumberOfSectors(), name, and emcGeometry::Reset().

template<class BM>
void emcOMGeometryT< BM >::Reset void   )  [virtual]
 

Reset the OM.

\ After a call to Reset, the OM must behave as if it was newly created.

Implements emcObjectManager.

Definition at line 307 of file emcOMGeometryT.h.

References emcOMGeometryT< BM >::fGeometry.

Referenced by emcOMGeometryT< BM >::~emcOMGeometryT().

template<class BM>
bool emcOMGeometryT< BM >::Write const emcManageable object,
const PHTimeStamp &  tStart,
int  id = -1
[virtual]
 

Write a manageable object to the DB.

See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 316 of file emcOMGeometryT.h.

References emcObjectManager::DM(), emcOMGeometryT< BM >::fBM, and name.


Member Data Documentation

template<class BM>
BM* emcOMGeometryT< BM >::fBM [private]
 

Definition at line 72 of file emcOMGeometryT.h.

Referenced by emcOMGeometryT< BM >::CanRead(), emcOMGeometryT< BM >::CanWrite(), emcOMGeometryT< BM >::Read(), and emcOMGeometryT< BM >::Write().

template<class BM>
emcGeometry* emcOMGeometryT< BM >::fGeometry [private]
 

Definition at line 71 of file emcOMGeometryT.h.

Referenced by emcOMGeometryT< BM >::Collect(), and emcOMGeometryT< BM >::Reset().


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