Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

quantity::Quantities Class Reference

Quantities base class. More...

#include <Quantity.h>

Inheritance diagram for quantity::Quantities:

quantity::Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, UT, Loki::Typelist< Head, Tail >, DU, ST > List of all members.

Public Member Functions

virtual const std::string unitsymbol (void) const=0
 return the symbol of the storage unit

virtual const std::string unitname (void) const=0
 return the name of the storage unit

virtual const bool isDimensionless (void) const=0
 return whether the quantity is dimensionless

virtual ~Quantities (void)
 destructor


Static Public Member Functions

const std::string Version (void)
 the version of all Quantities classes

const std::string version (void)
 return the version of a Quantities object;


Static Public Attributes

const std::string TAG = "quantity"
 definition of Quantities xml tag

const std::string MODETAG = "mode"
 definition of Quantity mode xml tag

const std::string BASENAMETAG = "basename"
 definition of Quantity base name xml tag

const std::string VALUETAG = "value"
 definition of Quantity value xml tag

const std::string UNITTAG = "unit"
 definition of Quantity unit xml tag


Detailed Description

Quantities base class.

defines common abilities of all quantities

Definition at line 619 of file Quantity.h.


Constructor & Destructor Documentation

virtual quantity::Quantities::~Quantities void   )  [inline, virtual]
 

destructor

Since this is a polymorphic class, the destructor should be virtual; it is empty.

Definition at line 658 of file Quantity.h.


Member Function Documentation

virtual const bool quantity::Quantities::isDimensionless void   )  const [pure virtual]
 

return whether the quantity is dimensionless

pure virtual, must be overridden in all decendants of Quantity

Implemented in quantity::Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, UT, Loki::Typelist< Head, Tail >, DU, ST >.

virtual const std::string quantity::Quantities::unitname void   )  const [pure virtual]
 

return the name of the storage unit

pure virtual, must be overridden in all decendants of Quantity

virtual const std::string quantity::Quantities::unitsymbol void   )  const [pure virtual]
 

return the symbol of the storage unit

pure virtual, must be overridden in all decendants of Quantity

const std::string quantity::Quantities::version void   )  [inline, static]
 

return the version of a Quantities object;

The version is returned by static function as a std::string; dynamic access.

Definition at line 637 of file Quantity.h.

References Version().

const std::string quantity::Quantities::Version void   )  [inline, static]
 

the version of all Quantities classes

The version is returned by a static function as a std::string; statuc access.

Definition at line 626 of file Quantity.h.

Referenced by version().


Member Data Documentation

const std::string quantity::Quantities::BASENAMETAG = "basename" [static]
 

definition of Quantity base name xml tag

define outside of class

Definition at line 67 of file Quantity.cc.

const std::string quantity::Quantities::MODETAG = "mode" [static]
 

definition of Quantity mode xml tag

define outside of class

Definition at line 64 of file Quantity.cc.

const std::string quantity::Quantities::TAG = "quantity" [static]
 

definition of Quantities xml tag

define outside of class

Definition at line 61 of file Quantity.cc.

const std::string quantity::Quantities::UNITTAG = "unit" [static]
 

definition of Quantity unit xml tag

define outside of class

Definition at line 73 of file Quantity.cc.

const std::string quantity::Quantities::VALUETAG = "value" [static]
 

definition of Quantity value xml tag

define outside of class

Definition at line 70 of file Quantity.cc.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:48:41 2007 for Quantity by doxygen 1.3.6