
Definition at line 63 of file osbunit.h.
| typedef TypeId<Unit> OSB_LIB::Unit::Oid |
Determine whether rhs can be converted to lhs.
| static Decimal OSB_LIB::Unit::convert | ( | const Oid & | lhs, | |
| const Oid & | rhs, | |||
| const Decimal & | value | |||
| ) | [static] |
Convert a value from one unit to another.
| lhs | The unit to be converted to. | |
| rhs | The unit of the original value to be converted. | |
| value | Original value to be converted. |
| OsbException | if the original value cannot be converted to the new value due to incompatible unit. |
| const std::string& OSB_LIB::Unit::name | ( | ) | const |
Get name.
| Oid OSB_LIB::Unit::oid | ( | ) | const |
Get object id.
| UnitId OSB_LIB::Unit::unitId | ( | ) | const |
Convert object id to `long'.
Convert object id to `long', class utility.
friend class OSB_DB::UnitGw [friend] |
std::string OSB_LIB::Unit::name_ [private] |
Oid OSB_LIB::Unit::oid_ [private] |
1.4.7