26 #ifndef __TERRALIB_COMMON_INTERNAL_UNITOFMEASURE_H 
   27 #define __TERRALIB_COMMON_INTERNAL_UNITOFMEASURE_H 
   38 #include <boost/shared_ptr.hpp> 
   87       UnitOfMeasure(
unsigned int id, 
const std::string& name, 
const std::string& symbol,
 
   88                     MeasureType type, 
const std::string& description = 
"");
 
  106        UnitOfMeasure(
unsigned int id, 
const std::string& name, 
const std::string& symbol,
 
  108                      double A, 
double B = 0.0, 
double C = 0.0, 
double D = 1.0, 
 
  109                      const std::string& description = 
"");
 
  119       unsigned int getId() 
const;
 
  126       const std::string& getName() 
const;
 
  133       void setDescription(
const std::string& description);
 
  140       const std::string& getDescription() 
const;
 
  147       const std::string& getSymbol() 
const;
 
  157       bool isBaseUnit() 
const;
 
  164       const unsigned int getBaseUnitId() 
const;
 
  176       void getConversionFactors(
double& A, 
double& B, 
double& C, 
double& D) 
const;
 
  187       double getConversionValue() 
const;
 
  194       std::string getWKT() 
const;
 
  217 #endif  // __TERRALIB_COMMON_INTERNAL_UNITOFMEASURE_H 
Configuration flags for the TerraLib Common Runtime module. 
 
unsigned int m_baseUnitId
Unique identification number of the base unit to which a conversion operation is provided. 
 
std::string m_symbol
Unit symbol. 
 
unsigned int m_id
Unique identification number for a unit of measure. 
 
MeasureType m_type
Unit type of measure. 
 
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
boost::shared_ptr< UnitOfMeasure > UnitOfMeasurePtr
 
std::string m_description
unit of measure description. 
 
MeasureType
Defines the possible types of unit of measurements. 
 
A class to represent units of measure. 
 
std::string m_name
unit of measure name according to SI.