![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Any of the systems devised to measure some physical quantity such distance or area or a system devised to measure such things as the passage of time.
The classes of UnitOfMeasure are determined by the member "measureType." Subclasses are not needed for implementation, but their use makes type constraints on measure valued attributes easier to specify.
– conversionToISOstandardUnit is not null only if the conversion is a simple scale
Public Member Functions | |
TSLUnitOfMeasure () | |
TSLUnitOfMeasure (const TSLUnitOfMeasure &right) | |
virtual | ~TSLUnitOfMeasure () |
TSLUnitOfMeasure & | operator= (const TSLUnitOfMeasure &right) |
void | measureType (TSLMeasureType input) |
void | nameStandardUnit (TSLCharacterString *input, bool assumeOwnership=true) |
void | nameStandardUnit (const char *input) |
void | scaleToStandardUnit (double *input, bool assumeOwnership=true) |
void | offsetToStandardUnit (double *input, bool assumeOwnership=true) |
void | formula (TSLCharacterString *input, bool assumeOwnership=true) |
void | formula (const char *input) |
void | subunit (TSLSubUnitsPerUnit *val, bool assumeOwnership=true) |
virtual TSLUnitOfMeasure * | clone () const |
virtual bool | serialize (void *outputStreamOfXML, int indentation=-1, bool isRootHandler=true) const |
const TSLCharacterString & | uomName () const |
TSLCharacterString & | uomName () |
void | uomName (const TSLCharacterString &input) |
void | uomName (const char *input) |
const TSLCharacterString & | uomSymbol () const |
TSLCharacterString & | uomSymbol () |
void | uomSymbol (const TSLCharacterString &input) |
void | uomSymbol (const char *input) |
TSLMeasureType | measureType () const |
const TSLCharacterString * | nameStandardUnit () const |
TSLCharacterString * | nameStandardUnit () |
const double * | scaleToStandardUnit () const |
double * | scaleToStandardUnit () |
const double * | offsetToStandardUnit () const |
double * | offsetToStandardUnit () |
const TSLCharacterString * | formula () const |
TSLCharacterString * | formula () |
const TSLSubUnitsPerUnit * | subunit () const |
TSLSubUnitsPerUnit * | subunit () |
Static Public Member Functions | |
static TSLUnitOfMeasure * | create () |
TSLUnitOfMeasure::TSLUnitOfMeasure | ( | ) |
The default constructor.
TSLUnitOfMeasure::TSLUnitOfMeasure | ( | const TSLUnitOfMeasure & | right | ) |
The copy constructor.
|
virtual |
The destructor.
|
virtual |
Clone method for derived or derived from classes. Creates object on the heap, so the pointer must be deleted
Reimplemented in TSLUomAngle, TSLUomArea, TSLUomCurrency, TSLUomLength, TSLUomScale, TSLUomTime, TSLUomVelocity, TSLUomVolume, and TSLUomWeight.
|
static |
|
inline |
Returns the formula attribute.
|
inline |
Returns the formula attribute.
void TSLUnitOfMeasure::formula | ( | const char * | input | ) |
Overload to allow assignment of string as a literal.
void TSLUnitOfMeasure::formula | ( | TSLCharacterString * | input, |
bool | assumeOwnership = true ) |
Sets the formula attribute.
|
inline |
Returns the measureType attribute. Returns TSLMeasureTypeNULL if uninitialised.
void TSLUnitOfMeasure::measureType | ( | TSLMeasureType | input | ) |
Sets the measureType attribute. TSLMeasureTypeNULL is not valid.
|
inline |
Returns the nameStandardUnit attribute.
|
inline |
Returns the nameStandardUnit attribute.
void TSLUnitOfMeasure::nameStandardUnit | ( | const char * | input | ) |
Overload to allow assignment of string as a literal.
void TSLUnitOfMeasure::nameStandardUnit | ( | TSLCharacterString * | input, |
bool | assumeOwnership = true ) |
Sets the nameStandardUnit attribute.
|
inline |
Returns the offsetToStandardUnit attribute.
|
inline |
Returns the offsetToStandardUnit attribute.
void TSLUnitOfMeasure::offsetToStandardUnit | ( | double * | input, |
bool | assumeOwnership = true ) |
Sets the offsetToStandardUnit attribute.
TSLUnitOfMeasure & TSLUnitOfMeasure::operator= | ( | const TSLUnitOfMeasure & | right | ) |
Assignment operator.
|
inline |
Returns the scaleToStandardUnit attribute.
|
inline |
Returns the scaleToStandardUnit attribute.
void TSLUnitOfMeasure::scaleToStandardUnit | ( | double * | input, |
bool | assumeOwnership = true ) |
Sets the scaleToStandardUnit attribute.
|
virtual |
Reimplemented in TSLUomAngle, TSLUomArea, TSLUomCurrency, TSLUomLength, TSLUomScale, TSLUomTime, TSLUomVelocity, TSLUomVolume, and TSLUomWeight.
|
inline |
|
inline |
void TSLUnitOfMeasure::subunit | ( | TSLSubUnitsPerUnit * | val, |
bool | assumeOwnership = true ) |
|
inline |
Returns the uomName attribute.
|
inline |
Returns the uomName attribute.
|
inline |
Overload to allow assignment of string as a literal.
|
inline |
Sets the uomName attribute.
|
inline |
Returns the uomSymbol attribute.
|
inline |
Returns the uomSymbol attribute.
|
inline |
Overload to allow assignment of string as a literal.
|
inline |
Sets the uomSymbol attribute.