libnabo  1.0.6
Public Member Functions | List of all members
Nabo::Parameters Struct Reference

Parameter vector. More...

#include <nabo.h>

Inheritance diagram for Nabo::Parameters:

Public Member Functions

 Parameters ()
 Create an empty parameter vector.
 
 Parameters (const std::string &key, const linb::any &value)
 Create a parameter vector with a single entry. More...
 
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. More...
 

Detailed Description

Parameter vector.

Constructor & Destructor Documentation

◆ Parameters()

Nabo::Parameters::Parameters ( const std::string &  key,
const linb::any value 
)
inline

Create a parameter vector with a single entry.

Parameters
keyentry key
valueentry value

Member Function Documentation

◆ get()

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
keyrequested key
defaultValuevalue 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: