#include <mapnik/enumeration.hpp>
#include <mapnik/config_error.hpp>
#include <mapnik/color_factory.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/optional.hpp>
#include <iostream>
#include <sstream>
Go to the source code of this file.
Classes | |
class | mapnik::boolean |
struct | mapnik::name_trait< T > |
struct | mapnik::name_trait< mapnik::enumeration< ENUM, MAX > > |
Namespaces | |
namespace | mapnik |
Defines | |
#define | DEFINE_NAME_TRAIT_WITH_NAME(type, type_name) |
#define | DEFINE_NAME_TRAIT(type) DEFINE_NAME_TRAIT_WITH_NAME( type, #type ); |
Functions | |
template<typename T > | |
T | mapnik::get (const boost::property_tree::ptree &node, const std::string &name, bool is_attribute, const T &default_value) |
template<typename T > | |
T | mapnik::get (const boost::property_tree::ptree &node, const std::string &name, bool is_attribute) |
template<typename T > | |
T | mapnik::get_own (const boost::property_tree::ptree &node, const std::string &name) |
template<typename T > | |
boost::optional< T > | mapnik::get_optional (const boost::property_tree::ptree &node, const std::string &name, bool is_attribute) |
template<typename T > | |
boost::optional< T > | mapnik::get_opt_attr (const boost::property_tree::ptree &node, const std::string &name) |
template<typename T > | |
boost::optional< T > | mapnik::get_opt_child (const boost::property_tree::ptree &node, const std::string &name) |
template<typename T > | |
T | mapnik::get_attr (const boost::property_tree::ptree &node, const std::string &name, const T &default_value) |
template<typename T > | |
T | mapnik::get_attr (const boost::property_tree::ptree &node, const std::string &name) |
template<typename T > | |
T | mapnik::get_css (const boost::property_tree::ptree &node, const std::string &name) |
template<typename charT , typename traits > | |
std::basic_istream< charT, traits > & | mapnik::operator>> (std::basic_istream< charT, traits > &s, mapnik::Color &c) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | mapnik::operator<< (std::basic_ostream< charT, traits > &s, const mapnik::Color &c) |
template<typename charT , typename traits > | |
std::basic_istream< charT, traits > & | mapnik::operator>> (std::basic_istream< charT, traits > &s, boolean &b) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | mapnik::operator<< (std::basic_ostream< charT, traits > &s, const boolean &b) |
template<typename T > | |
void | mapnik::set_attr (boost::property_tree::ptree &pt, const std::string &name, const T &v) |
template<typename T > | |
void | mapnik::set_css (boost::property_tree::ptree &pt, const std::string &name, const T &v) |
mapnik::DEFINE_NAME_TRAIT (double) | |
mapnik::DEFINE_NAME_TRAIT (float) | |
mapnik::DEFINE_NAME_TRAIT (unsigned) | |
mapnik::DEFINE_NAME_TRAIT (boolean) | |
mapnik::DEFINE_NAME_TRAIT_WITH_NAME (int,"integer") | |
mapnik::DEFINE_NAME_TRAIT_WITH_NAME (std::string,"string") | |
mapnik::DEFINE_NAME_TRAIT_WITH_NAME (Color,"color") |
#define DEFINE_NAME_TRAIT | ( | type | ) | DEFINE_NAME_TRAIT_WITH_NAME( type, #type ); |
#define DEFINE_NAME_TRAIT_WITH_NAME | ( | type, | |||
type_name | ) |
Value:
template <> \ struct name_trait<type> \ { \ static std::string name() { return std::string("type ") + type_name; } \ };