Nabo::Parameters Struct Reference
[public interface]

Parameter vector. More...

#include <nabo.h>

List of all members.

Public Member Functions

 Parameters ()
 Create an empty parameter vector.
 Parameters (const std::string &key, const boost::any &value)
 Create a parameter vector with a single entry.
template<typename T >
get (const std::string &key, const T &defaultValue) const
 Get the value of a key, return defaultValue if the key does not exist.

Detailed Description

Parameter vector.


Constructor & Destructor Documentation

Nabo::Parameters::Parameters ( const std::string &  key,
const boost::any &  value 
) [inline]

Create a parameter vector with a single entry.

Parameters:
key entry key
value entry value

Member Function Documentation

template<typename T >
T Nabo::Parameters::get ( const std::string &  key,
const T &  defaultValue 
) const [inline]

Get the value of a key, return defaultValue if the key does not exist.

Parameters:
key requested key
defaultValue value to return if the key does not exist
Returns:
value of the key, or defaultValue if the key does not exist

The documentation for this struct was generated from the following file:
Generated on Fri May 3 12:48:10 2013 for libnabo by  doxygen 1.6.3