![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
The association connects larger units of measure to smaller ones in the same system. For example, 30.5 degrees can be written as "30 degree 30 minutes." The number of subunits per unit is given by the association class "SubUnits PerUnit." this factor is normally an integer, but not always (a rod is 16.5 feet).
The normal textual representation is to use only integer quantities until the smallest subunit is used, which can then carry a fractional part. So, 30 degrees, 30 minutes, 25.4 seconds is in the usual form. 30.5 degrees, 25.4 seconds while acceptable and correct, is not the usualy canonical form.
x units = factor*x subunits
An association attribute that links a master unit to a subunit of the same type, such as feet and inches.
Public Member Functions | |
TSLSubUnitsPerUnit () | |
TSLSubUnitsPerUnit (const TSLSubUnitsPerUnit &right) | |
virtual | ~TSLSubUnitsPerUnit () |
TSLSubUnitsPerUnit & | operator= (const TSLSubUnitsPerUnit &right) |
void | factor (double *input, bool assumeOwnership=true) |
void | subunit (TSLUnitOfMeasure *val, bool assumeOwnership=true) |
virtual bool | serialize (void *outputStreamOfXML, int indentation=-1, bool isRootHandler=true) const |
const double * | factor () const |
double * | factor () |
const TSLUnitOfMeasure * | subunit () const |
TSLUnitOfMeasure * | subunit () |
Static Public Member Functions | |
static TSLSubUnitsPerUnit * | create () |
TSLSubUnitsPerUnit::TSLSubUnitsPerUnit | ( | ) |
The default constructor.
TSLSubUnitsPerUnit::TSLSubUnitsPerUnit | ( | const TSLSubUnitsPerUnit & | right | ) |
The copy constructor.
|
virtual |
The destructor.
|
static |
|
inline |
Returns the factor attribute.
|
inline |
Returns the factor attribute.
void TSLSubUnitsPerUnit::factor | ( | double * | input, |
bool | assumeOwnership = true ) |
Sets the factor attribute.
TSLSubUnitsPerUnit & TSLSubUnitsPerUnit::operator= | ( | const TSLSubUnitsPerUnit & | right | ) |
Assignment operator.
|
virtual |
|
inline |
Returns the factor attribute.
|
inline |
Returns the factor attribute.
void TSLSubUnitsPerUnit::subunit | ( | TSLUnitOfMeasure * | val, |
bool | assumeOwnership = true ) |
Sets the factor attribute.