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

SctData::ResponseCurveMap Class Reference

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

#include <ResponseCurve.h>

Inheritance diagram for SctData::ResponseCurveMap:

noncopyable

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)
 
Returns:
the response curve corresponding to a particular chip configuration.


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

Static Public Member Functions

ResponseCurveMap & getMap () 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)
 

Returns:
the response curve corresponding to a particular chip configuration.

Definition at line 83 of file ResponseCurve.cpp.

References get().

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.


Field Documentation

map<int, ResponseCurve*> SctData::ResponseCurveMap::indexMap [private]
 

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

map<string, int> SctData::ResponseCurveMap::nameMap [private]
 

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


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:50 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3