MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches

Detailed Description

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 ()
 
TSLSubUnitsPerUnitoperator= (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 TSLUnitOfMeasuresubunit () const
 
TSLUnitOfMeasuresubunit ()
 

Static Public Member Functions

static TSLSubUnitsPerUnitcreate ()
 

Constructor & Destructor Documentation

◆ TSLSubUnitsPerUnit() [1/2]

TSLSubUnitsPerUnit::TSLSubUnitsPerUnit ( )

The default constructor.

◆ TSLSubUnitsPerUnit() [2/2]

TSLSubUnitsPerUnit::TSLSubUnitsPerUnit ( const TSLSubUnitsPerUnit & right)

The copy constructor.

◆ ~TSLSubUnitsPerUnit()

virtual TSLSubUnitsPerUnit::~TSLSubUnitsPerUnit ( )
virtual

The destructor.

Member Function Documentation

◆ create()

static TSLSubUnitsPerUnit * TSLSubUnitsPerUnit::create ( )
static

◆ factor() [1/3]

double * TSLSubUnitsPerUnit::factor ( )
inline

Returns the factor attribute.

◆ factor() [2/3]

const double * TSLSubUnitsPerUnit::factor ( ) const
inline

Returns the factor attribute.

◆ factor() [3/3]

void TSLSubUnitsPerUnit::factor ( double * input,
bool assumeOwnership = true )

Sets the factor attribute.

◆ operator=()

TSLSubUnitsPerUnit & TSLSubUnitsPerUnit::operator= ( const TSLSubUnitsPerUnit & right)

Assignment operator.

◆ serialize()

virtual bool TSLSubUnitsPerUnit::serialize ( void * outputStreamOfXML,
int indentation = -1,
bool isRootHandler = true ) const
virtual

◆ subunit() [1/3]

TSLUnitOfMeasure * TSLSubUnitsPerUnit::subunit ( )
inline

Returns the factor attribute.

◆ subunit() [2/3]

const TSLUnitOfMeasure * TSLSubUnitsPerUnit::subunit ( ) const
inline

Returns the factor attribute.

◆ subunit() [3/3]

void TSLSubUnitsPerUnit::subunit ( TSLUnitOfMeasure * val,
bool assumeOwnership = true )

Sets the factor attribute.