#include <Dedimensionalization.h>
Public Member Functions | |
DedimReturn (void) | |
default constructor | |
DedimReturn (const ST &value) | |
constructor from ST | |
const std::string | unitsymbol (void) const |
return the storage unit symbol; | |
const std::string | unitname (void) const |
return the storage unit name; | |
ST | value (void) const |
return the value in the storage unit; | |
ST | standard_value (void) const |
return the value in the standard unit; | |
std::ostream & | print_value (std::ostream &os) const |
print the value and the unit of the quantity | |
void | operator>> (std::string &str) const |
store the value and unit of the quantity in a std::string | |
std::ostream & | operator>> (std::ostream &os) const |
print the quantity | |
void | save (BSUtilities::xmlw::XmlStream &os) const |
save contents of the DedimReturn quantity object as xml | |
void | load (const TiXmlHandle node) const |
load contents of the DedimReturn quantity object from xml code | |
Static Public Attributes | |
const std::string | MODE |
the xml Variable tag | |
Private Attributes | |
ST | _value |
the value of the quantity |
specialization for PQ being a quantity; needs to define at least the virtual functions but also: value etc.
Definition at line 66 of file Dedimensionalization.h.
|
constructor from ST
Definition at line 96 of file Dedimensionalization.h. |
|
default constructor
Definition at line 93 of file Dedimensionalization.h. |
|
load contents of the DedimReturn quantity object from xml code use this is when attempting to input the contents of the DedimReturn quantity object through the Quantity ObjectFactory Definition at line 160 of file Dedimensionalization.h. |
|
print the quantity used if the quantity is placed to the left of operator>>; calls print_value () indirectly through Quantity<>::print, thus including name and symbol of quantity if requested. Definition at line 140 of file Dedimensionalization.h. |
|
store the value and unit of the quantity in a std::string converts to a string by template Conversion Definition at line 131 of file Dedimensionalization.h. |
|
print the value and the unit of the quantity places these items on the ostream os and returns the reference to the os object, thus allowing chaining of operator<< calls. Definition at line 125 of file Dedimensionalization.h. |
|
save contents of the DedimReturn quantity object as xml this should be used when attempting to output the contents of the DedimReturn quantity object in xml form, which can later be read without knowledge of the object's type Definition at line 148 of file Dedimensionalization.h. |
|
return the value in the standard unit; The stored constant_value is standardized using the Standardize () function for unit SU Definition at line 118 of file Dedimensionalization.h. |
|
return the storage unit name; the name is interrogated from SU; dynamic access. Definition at line 107 of file Dedimensionalization.h. |
|
return the storage unit symbol; the symbol is interrogated from SU; dynamic access. Definition at line 101 of file Dedimensionalization.h. |
|
return the value in the storage unit; The stored _value is returned without recalculation. Definition at line 112 of file Dedimensionalization.h. |
|
the value of the quantity this data member is private, and can only be accessed through the member functions value (). Definition at line 89 of file Dedimensionalization.h. |
|
the xml Variable tag define outside of class Definition at line 186 of file Dedimensionalization.h. |