SctData::ConfigurationVariable Class Reference

ConfigurationVariable represents a variable within ModuleConfiguration/ABCDModule. More...

#include <ConfigurationVariable.h>

Inheritance diagram for SctData::ConfigurationVariable:

Inheritance graph
[legend]
Collaboration diagram for SctData::ConfigurationVariable:

Collaboration graph
[legend]

Public Member Functions

virtual ~ConfigurationVariable () throw ()
string getClassName () const throw ()
 Get the class name for this object.
bool operator== (const ConfigurationVariable &var) const throw ()
bool operator!= (const ConfigurationVariable &var) const throw ()
string getVariableName () const throw ()
string getStrategyDescription () const throw ()
virtual double getLinkActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int link) const =0 throw ()
virtual double getChipActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int chip) const =0 throw ()
virtual double getChannelActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int channel) const =0 throw ()
virtual double getLinkLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int link) const =0 throw ()
virtual double getChipLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int chip) const =0 throw ()
virtual double getChannelLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int channel) const =0 throw ()
virtual double getChipActualPoint (const ModuleConfiguration &config, unsigned int chip) const =0 throw ()
virtual void setChipActualPoint (double actualPt, ModuleConfiguration &config, unsigned int chip) const =0 throw ()
virtual double getChipLogicalPoint (const ModuleConfiguration &config, unsigned int chip) const throw ()
virtual void setChipLogicalPoint (double logicalPt, ModuleConfiguration &config, unsigned int chip) const throw ()
virtual double getModuleLogicalPoint (const ModuleConfiguration &config) const throw ()
virtual void setModuleLogicalPoint (double logicalPt, ModuleConfiguration &config) const throw ()

Protected Member Functions

 ConfigurationVariable (unsigned int typeVal, string variableName, string strategyDescription)

Private Types

typedef map< unsigned short,
shared_ptr< ConfigurationVariable > > 
VariableTypeMap

Private Member Functions

 ConfigurationVariable (unsigned int typeVal)

Static Private Member Functions

static VariableTypeMapgetMap () throw ()

Private Attributes

unsigned short typeVal
string variableName
string strategyDescription

Friends

class ConfigurationVariableIOHelper

Detailed Description

ConfigurationVariable represents a variable within ModuleConfiguration/ABCDModule.

Sub-classes represent the particular (logical) variables and the different ways of setting them (e.g. ThresholdVariable represents the logical variable threshold and mVThresholdVariable represents setting the threshold in mV, fCThresholdVariable represents setting it in fC). The sub-classes are intended to be singletons (as they are really strategies and flyweights).

Author:
Matthew Palmer

Definition at line 26 of file ConfigurationVariable.h.


Member Function Documentation

string SctData::ConfigurationVariable::getClassName  )  const throw () [virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Returns:
the class name
Note:
Nothrow

Implements Sct::Streamable.

Definition at line 24 of file ConfigurationVariable.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:07:06 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6