Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctData::ResponseCurveMap Class Reference

Map used within the virtual constructor idiom. More...

#include <ResponseCurve.h>


Public Member Functions

bool addToMap (const string &curvename, const int index, ResponseCurve &) throw ()
 used by derived classes to add themselves.

auto_ptr< ResponseCurveget (const string &curvename) const throw (LogicError)
auto_ptr< ResponseCurveget (const int index) const throw (LogicError)
auto_ptr< ResponseCurveget (const ChipConfiguration &chip) const throw (LogicError)
 the response curve corresponding to a particular chip configuration.

int getIndex (const string &curvename) const throw (LogicError)

Static Public Member Functions

ResponseCurveMapgetMap () throw ()
 access function to the singleton


Private Attributes

map< int, ResponseCurve * > indexMap
map< string, int > nameMap


Detailed Description

Map used within the virtual constructor idiom.

Definition at line 69 of file SCTData/src/ResponseCurve.h.


Member Function Documentation

bool SctData::ResponseCurveMap::addToMap const string &  curvename,
const int  index,
ResponseCurve
throw ()
 

used by derived classes to add themselves.

Definition at line 36 of file ResponseCurve.cpp.

auto_ptr< ResponseCurve > SctData::ResponseCurveMap::get const ChipConfiguration chip  )  const throw (LogicError)
 

the response curve corresponding to a particular chip configuration.

Definition at line 83 of file ResponseCurve.cpp.

References get().

Here is the call graph for this function:

auto_ptr< ResponseCurve > SctData::ResponseCurveMap::get const int  index  )  const throw (LogicError)
 

Returns:
a mode of the derived class.
Parameters:
the derrived class integer representation.
Exceptions:
LogicError if class index dosen't exist.

Definition at line 67 of file ResponseCurve.cpp.

auto_ptr< ResponseCurve > SctData::ResponseCurveMap::get const string &  curvename  )  const throw (LogicError)
 

Returns:
a mode of the derived class.
Parameters:
the derrived class name
Exceptions:
LogicError if class dosen't exist.

Definition at line 63 of file ResponseCurve.cpp.

Referenced by get().

int SctData::ResponseCurveMap::getIndex const string &  curvename  )  const throw (LogicError)
 

Returns:
the integer index representation of the response curve of name classname
Parameters:
the derrived class name
Exceptions:
LogicError if class dosen't exist

Definition at line 47 of file ResponseCurve.cpp.

ResponseCurveMap & SctData::ResponseCurveMap::getMap  )  throw () [static]
 

access function to the singleton

Definition at line 31 of file ResponseCurve.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 09:52:50 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5