Public Member Functions | Protected Attributes

Parameters::QuantityParam Class Reference

#include <QuantityParam.h>

Inheritance diagram for Parameters::QuantityParam:
Inheritance graph
[legend]
Collaboration diagram for Parameters::QuantityParam:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QuantityParam ()
 QuantityParam (const string &nameVal, auto_ptr< string > unitsVal)
virtual ~QuantityParam ()=0
virtual auto_ptr< string > getUnits ()
virtual bool getHasUnits ()
virtual string toString ()

Protected Attributes

string units_m
bool hasUnits_m

Detailed Description

QuantityParam class - abstract base class used to store information about params having units (e.g. Mhz, cm, seconds, etc.) within a ParameterSetDef as defined by the task author of a particular OFFLINE task.


Constructor & Destructor Documentation

Parameters::QuantityParam::QuantityParam (  ) 

Constructor

Parameters::QuantityParam::QuantityParam ( const string &  nameVal,
auto_ptr< string >  unitsVal 
)

Constructor

Parameters:
name the name of the parameter units for the quantity, if any
virtual Parameters::QuantityParam::~QuantityParam (  )  [pure virtual]

Destructor


Member Function Documentation

virtual bool Parameters::QuantityParam::getHasUnits (  )  [virtual]
virtual auto_ptr< string > Parameters::QuantityParam::getUnits (  )  [virtual]
virtual string Parameters::QuantityParam::toString (  )  [virtual]

Returns an XML string representation of the param.

Returns:
the param as an XML string NOTE: the XML is not a complete document, just a fragment.

Reimplemented from Parameters::Param.


Member Data Documentation


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