Represents a hashed map from property names to property values. More...
#include <xmlutils.h>
Public Member Functions | |
XMLPropertyDict () | |
Create a new hashed map. | |
const std::string & | lookup (const std::string &key, const std::string &defaultVal=std::string()) const |
Return a value for the given key, even if the key does not exist in the hashed map. |
Represents a hashed map from property names to property values.
regina::xml::XMLPropertyDict::XMLPropertyDict | ( | ) | [inline] |
Create a new hashed map.
const std::string & regina::xml::XMLPropertyDict::lookup | ( | const std::string & | key, | |
const std::string & | defaultVal = std::string() | |||
) | const [inline] |
Return a value for the given key, even if the key does not exist in the hashed map.
key | the key to look up. | |
defaultVal | the value to return if the key does not exist. |