emcOMRejectListT< BM > Class Template Reference
[DataManager Plugins]

#include <emcOMRejectListT.h>

Inherits emcObjectManager.

Inheritance diagram for emcOMRejectListT< BM >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BM>
class emcOMRejectListT< BM >

(Template) Plugin class for emcRejectList objects.

Definition at line 17 of file emcOMRejectListT.h.

Public Member Functions

 emcOMRejectListT (const char *name="", const char *title="")
virtual ~emcOMRejectListT ()
bool CanRead (const emcManageable &) const
 Can we read a given object type ?
bool CanWrite (const emcManageable &) const
 Can we write a given object type ?
bool Read (emcManageable &object, const PHTimeStamp &time_stamp, int dummy)
 Read a manageable object from the DB.
void Reset (void)
 Reset the OM.
bool Write (const emcManageable &object, const PHTimeStamp &tdummy, int dummy=-1)
 Write a manageable object to the DB.

Private Member Functions

const char * GetPersistentClassName ()
void FromPdbCalBank (emcRejectList &, PdbCalBank &)
bool ReadFromFile (emcRejectList &)
void ToPdbCalBank (const emcRejectList &, PdbCalBank &)

Private Attributes

BM * fBM

Classes

class  changeName


Constructor & Destructor Documentation

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

Definition at line 93 of file emcOMRejectListT.h.

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

Definition at line 100 of file emcOMRejectListT.h.

References emcOMRejectListT< BM >::Reset().


Member Function Documentation

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

Can we read a given object type ?

Returns:
false by default.

Reimplemented from emcObjectManager.

Definition at line 108 of file emcOMRejectListT.h.

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

Referenced by emcOMRejectListT< BM >::Read().

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

Can we write a given object type ?

Returns:
false by default.

Reimplemented from emcObjectManager.

Definition at line 127 of file emcOMRejectListT.h.

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

Referenced by emcOMRejectListT< BM >::Write().

template<class BM>
void emcOMRejectListT< BM >::FromPdbCalBank emcRejectList ,
PdbCalBank & 
[private]
 

Definition at line 147 of file emcOMRejectListT.h.

References emcRejectList::set_or().

Referenced by emcOMRejectListT< BM >::Read().

template<class BM>
const char* emcOMRejectListT< BM >::GetPersistentClassName void   )  [inline, private]
 

Definition at line 41 of file emcOMRejectListT.h.

Referenced by emcOMRejectListT< BM >::Read(), and emcOMRejectListT< BM >::Write().

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

Read a manageable object from the DB.

See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 162 of file emcOMRejectListT.h.

References emcOMRejectListT< BM >::CanRead(), emcObjectManager::DM(), EMC_ERROR_MSG, EMC_INFO_MSG, emcOMRejectListT< BM >::fBM, emcOMRejectListT< BM >::FromPdbCalBank(), emcRejectList::GetCategory(), emcNamed::GetName(), emcOMRejectListT< BM >::GetPersistentClassName(), and emcRejectList::Reset().

template<class BM>
bool emcOMRejectListT< BM >::ReadFromFile emcRejectList  )  [private]
 

template<class BM>
void emcOMRejectListT< 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 219 of file emcOMRejectListT.h.

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

template<class BM>
void emcOMRejectListT< BM >::ToPdbCalBank const emcRejectList ,
PdbCalBank & 
[private]
 

Definition at line 226 of file emcOMRejectListT.h.

References emcRejectList::AmplitudeError(), emcRejectList::AmplitudeWarning(), j, emcRejectList::maxsize(), emcRejectList::nonZero(), emcRejectList::size(), emcRejectList::TimingError(), and emcRejectList::TimingWarning().

Referenced by emcOMRejectListT< BM >::Write().

template<class BM>
bool emcOMRejectListT< BM >::Write const emcManageable object,
const PHTimeStamp &  tdummy,
int  dummy = -1
[virtual]
 

Write a manageable object to the DB.

See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 253 of file emcOMRejectListT.h.

References emcOMRejectListT< BM >::CanWrite(), emcObjectManager::DM(), EMC_ERROR_MSG, EMC_INFO_MSG, emcOMRejectListT< BM >::fBM, emcRejectList::GetCategory(), emcRejectList::GetEndValTime(), emcNamed::GetName(), emcOMRejectListT< BM >::GetPersistentClassName(), emcRejectList::GetStartValTime(), and emcOMRejectListT< BM >::ToPdbCalBank().


Member Data Documentation

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

Definition at line 49 of file emcOMRejectListT.h.

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


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