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

SctData::DefaultVariable Class Reference

This class represents a configuration variable for which there is no specific class. More...

#include <DefaultVariable.h>

Inheritance diagram for SctData::DefaultVariable:

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

Collaboration graph
[legend]

Public Member Functions

virtual double getLinkActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int link) const throw ()
virtual double getChipActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int chip) const throw ()
virtual double getChannelActualPoint (double logicalPt, const ModuleConfiguration &config, unsigned int channel) const throw ()
virtual double getLinkLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int link) const throw ()
virtual double getChipLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int chip) const throw ()
virtual double getChannelLogicalPoint (double actualPt, const ModuleConfiguration &config, unsigned int channel) const throw ()
virtual double getChipActualPoint (const ModuleConfiguration &config, unsigned int chip) const throw ()
 Obviously, these can't work for a DefaultVariable.

virtual void setChipActualPoint (double actualPt, ModuleConfiguration &config, unsigned int chip) const throw ()

Static Public Member Functions

shared_ptr< ConfigurationVariableinstance (unsigned int typeRep)
 Get the ConfigurationVariable that corresponds to the given typeRep May not be a ConfigurationVariable.


Private Member Functions

 DefaultVariable (unsigned int typeRep)
 Only the ConfigurationVariable is allowed to create these as they must be created on the heap.


Friends

class ConfigurationVariableIOHelper

Detailed Description

This class represents a configuration variable for which there is no specific class.

The actual<->logical mapping is therefore actual=logical. It can also be used as an implementation class for variables that have that same mapping.

Todo:
Think: Is this necessary? Does it imply public virtual inheritance of ConfigurationVariable ...are there any problems?

Definition at line 15 of file DefaultVariable.h.


Constructor & Destructor Documentation

SctData::DefaultVariable::DefaultVariable unsigned int  typeRep  )  [private]
 

Only the ConfigurationVariable is allowed to create these as they must be created on the heap.

Definition at line 5 of file DefaultVariable.cpp.


Member Function Documentation

double SctData::DefaultVariable::getChipActualPoint const ModuleConfiguration config,
unsigned int  chip
const throw () [virtual]
 

Obviously, these can't work for a DefaultVariable.

Implements SctData::ConfigurationVariable.

Definition at line 37 of file DefaultVariable.cpp.

shared_ptr< ConfigurationVariable > SctData::DefaultVariable::instance unsigned int  typeRep  )  [static]
 

Get the ConfigurationVariable that corresponds to the given typeRep May not be a ConfigurationVariable.

Todo:
Should we issue a warning in this case?

Definition at line 7 of file DefaultVariable.cpp.


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