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();
82 TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::vector<std::pair<std::string, std::string> >& vp);
130 TECOMMONEXPORT void Convert(
const boost::property_tree::ptree& p, std::vector<std::map<std::string, std::string> >& vectm);
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.
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<std::string, std::string>.
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).