26 #ifndef __TERRALIB_COMMON_INTERNAL_UNITSOFMEASUREMANAGER_H 27 #define __TERRALIB_COMMON_INTERNAL_UNITSOFMEASUREMANAGER_H 60 typedef std::map<unsigned int, UnitOfMeasurePtr>::const_iterator
const_iterator;
61 typedef std::map<unsigned int, UnitOfMeasurePtr>::iterator
iterator;
140 bool areConvertible(
const std::string& unitFromName,
const std::string& unitToName)
const;
152 double getConversion(
const std::string& unitFromName,
const std::string& unitToName)
const;
168 const_iterator begin()
const;
182 const_iterator end()
const;
196 std::size_t size()
const;
200 bool isInitialized();
212 std::map<unsigned int, UnitOfMeasurePtr>
m_uoms;
219 return m_uoms.size();
224 return m_uoms.begin();
229 return m_uoms.begin();
246 #endif // __TERRALIB_COMMON_INTERNAL_UNITSOFMEASUREMANAGER_H const_iterator begin() const
It returns an iterator to the beginning of the conteiner.
std::map< std::string, unsigned int > m_uomsIdxByName
const_iterator end() const
It returns an iterator to the end of the conteiner.
A singleton class for dealing with units of measure in the TerraLib environment.
std::map< unsigned int, UnitOfMeasurePtr > m_uoms
std::size_t size() const
It returns the number of units in the manager.
Template support for singleton pattern.
std::map< unsigned int, UnitOfMeasurePtr >::const_iterator const_iterator
mydialect insert("+", new te::da::BinaryOpEncoder("+"))
A class for representing a unit 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
Template support for singleton pattern.
std::map< unsigned int, UnitOfMeasurePtr >::iterator iterator