|
| | BaseUnit (const char *name, const char *abbreviation, const BinaryDataType defaultDataType=NO_TYPE) |
| | Base unit constructor. More...
|
| |
| | Unit (const char *name, const char *abbreviation, const BaseUnit &baseUnit, const double toSiMultiplier=1.0, const double toSiAddend=0.0) |
| | General unit constructor. More...
|
| |
| | Unit (const char *name, const char *abbreviation, const BinaryDataType defaultDataType=NO_TYPE) |
| | Base unit constructor. More...
|
| |
| virtual | ~Unit () |
| |
| const double | getScaled (const double &siValue) const |
| |
| const int | getScaled (const int siValue) const |
| |
| const double | getSI (const double &scaledValue) const |
| |
| const int | getSI (const int scaledValue) const |
| |
| void | toScaled (double &siValue) const |
| |
| void | toScaled (int &siValue) const |
| |
| void | toSI (double &scaledValue) const |
| |
| void | toSI (int &scaledValue) const |
| |
| DataValue * | dataValue (const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | dataValue (const bool &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | dataValue (const unsigned char &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | dataValue (const int &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | dataValue (const float &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | dataValue (const double &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| bool | operator== (const Unit &unit) const |
| |
| bool | operator!= (const Unit &unit) const |
| |
| DataValue * | operator() (const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | operator() (const bool &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | operator() (const unsigned char &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | operator() (const int &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | operator() (const float &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| DataValue * | operator() (const double &assignFrom, const BinaryDataType dataType=NO_TYPE) const |
| |
| const char * | getAbbreviation (void) const |
| |
| const char * | getName (void) const |
| |
| const Unit & | getBaseUnit (void) const |
| |
| const BinaryDataType | getDefaultDataType () const |
| |