36 #ifdef CHECK_MEMORY_LEAKS
38 #endif // CHECK_MEMORY_LEAKS
59 const std::string& color,
const std::string& prefix,
60 int layer,
bool discard,
bool allowFill) {
78 return myTypes.find(
id)->second;
std::string id
The new type id to use.
static RGBColor parseColor(std::string coldef)
Parses a color information.
A single definition of values that shall be used for a given type.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
bool discard
Information whether polygons of this type shall be discarded.
RGBColor color
The color to use.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
const TypeDef & get(const std::string &id)
Returns a type definition.
bool add(const std::string &id, const std::string &newid, const std::string &color, const std::string &prefix, int layer, bool discard, bool allowFill)
Adds a type definition.
bool has(const std::string &id)
Returns the information whether the named type is known.
PCTypeMap(const OptionsCont &oc)
Constructor. The default type is constructed based on the given options.
std::string prefix
The prefix to use.
A storage for options typed value containers)
std::map< std::string, TypeDef > myTypes
A map of type names to type definitions.
int layer
The layer to use.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
bool allowFill
Information whether polygons of this type can be filled.