28 #ifndef __TERRALIB_COMMON_INTERNAL_BOOSTUTILS_H 
   29 #define __TERRALIB_COMMON_INTERNAL_BOOSTUTILS_H 
   40 #include <boost/property_tree/ptree_fwd.hpp> 
   41 #include <boost/unordered_map.hpp> 
   55     template<
class K, 
class V> 
inline void FreeContents(boost::unordered_map<K, V*>& m)
 
   57       typename boost::unordered_map<K, V*>::const_iterator it = m.begin();
 
   58       typename boost::unordered_map<K, V*>::const_iterator itend = m.end();
 
   73     TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::map<std::string, std::string>& dict);
 
   82     TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::vector<std::pair<std::string, std::string> >& vp);
 
  122     TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::vector<std::vector<double> >& vect);
 
  130     TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::vector<std::map<std::string, std::string> >& vectm);
 
  143 #endif  // __TERRALIB_COMMON_INTERNAL_BOOSTUTILS_H 
TECOMMONEXPORT std::string ConvertLatin1UTFString(const std::string &data, const bool &toUtf=true)
Converts a string from latin1 to utf8 and vice-versa. 
 
Configuration flags for the TerraLib Common Runtime module. 
 
TECOMMONEXPORT void Convert(const boost::property_tree::ptree &p, std::map< std::string, std::string > &dict)
Converts a property tree node into a std::map. 
 
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...