Regina Calculation Engine
Public Member Functions
regina::xml::XMLPropertyDict Class Reference

Represents a map from property names to property values. More...

#include <utilities/xmlutils.h>

List of all members.

Public Member Functions

 XMLPropertyDict ()
 Create a new 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 map.

Detailed Description

Represents a map from property names to property values.

Python:
Not present.

Constructor & Destructor Documentation

regina::xml::XMLPropertyDict::XMLPropertyDict ( ) [inline]

Create a new map.


Member Function Documentation

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 map.

Parameters:
keythe key to look up.
defaultValthe value to return if the key does not exist.
Returns:
the value associated with the given key, or parameter default if the key does not exist in the map.

The documentation for this class was generated from the following file:

Copyright © 1999-2011, The Regina development team
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).