38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 61 const std::string& color,
const std::string& prefix,
62 SUMOReal layer,
bool discard,
bool allowFill) {
80 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.
SUMOReal layer
The layer to use.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
bool add(const std::string &id, const std::string &newid, const std::string &color, const std::string &prefix, SUMOReal layer, bool discard, bool allowFill)
Adds a type definition.
bool discard
Information whether polygons of this type shall be discarded.
RGBColor color
The color to use.
const TypeDef & get(const std::string &id)
Returns a type definition.
bool has(const std::string &id)
Returns the information whether the named type is known.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
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.
SUMOReal getFloat(const std::string &name) const
Returns the SUMOReal-value of the named option (only for Option_Float)
bool allowFill
Information whether polygons of this type can be filled.