Public Member Functions | Private Attributes
Dashel::ParameterSet Class Reference

Parameter set. More...

#include <dashel.h>

List of all members.

Public Member Functions

void add (const char *line)
 Add values to set.
void addParam (const char *param, const char *value=NULL, bool atStart=false)
 Add a parameter to a set.
void erase (const char *key)
 Erase the parameter from the set.
template<typename T >
get (const char *key) const
 Get a parameter value.
const std::string & get (const char *key) const
 Get a parameter value.
std::string getString () const
 Get the parameters as string.
bool isSet (const char *key) const
 Return whether a key is set or not.

Private Attributes

std::vector< std::string > params
std::map< std::string,
std::string > 
values

Detailed Description

Parameter set.

Definition at line 227 of file dashel.h.


Member Function Documentation

void Dashel::ParameterSet::add ( const char *  line)

Add values to set.

Definition at line 191 of file dashel-common.cpp.

void Dashel::ParameterSet::addParam ( const char *  param,
const char *  value = NULL,
bool  atStart = false 
)

Add a parameter to a set.

Parameters:
paramname of the parameter
valuevalue of the parameter or NULL (then parameter will default or pre-existing value)
atStartif true, insert parameter at start of the list

Definition at line 224 of file dashel-common.cpp.

void Dashel::ParameterSet::erase ( const char *  key)

Erase the parameter from the set.

Definition at line 265 of file dashel-common.cpp.

template<typename T >
T Dashel::ParameterSet::get ( const char *  key) const

Get a parameter value.

Definition at line 240 of file dashel-common.cpp.

const std::string& Dashel::ParameterSet::get ( const char *  key) const

Get a parameter value.

std::string Dashel::ParameterSet::getString ( ) const

Get the parameters as string.

Definition at line 251 of file dashel-common.cpp.

bool Dashel::ParameterSet::isSet ( const char *  key) const

Return whether a key is set or not.

Definition at line 235 of file dashel-common.cpp.


Member Data Documentation

std::vector<std::string> Dashel::ParameterSet::params [private]

Definition at line 231 of file dashel.h.

std::map<std::string, std::string> Dashel::ParameterSet::values [private]

Definition at line 230 of file dashel.h.


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


dashel
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:11