Configuration::Parameter< T > Class Template Reference

A configurable parameter. More...

#include <Configuration.h>

Classes

class  ParseLoader
 Uses an intermediate parser to load from configuration. More...
 

Public Member Functions

 Parameter (const T &val)
 
 Parameter (const std::string &_key, Configuration *config, T default_value)
 
 Parameter (const std::string &_key, Configuration *config)
 
template<typename Parser >
 Parameter (const std::string &_key, Configuration *config, Parser *parser, const std::string &default_value)
 
 operator T& ()
 Cast to T& operator.
 
get_value () const
 Get a copy of the value.
 
void set_value (const T &val)
 Set the value.
 
T & operator= (const T &t)
 Set equal to T operator.
 
bool operator== (const T &t) const
 Equality test operator.
 
std::string get_key () const
 
void set_key (const std::string &_key)
 
void set_loader (Loader *_load)
 

Protected Attributes

std::string key
 
value
 
Loader * loader
 

Detailed Description

template<class T>
class Configuration::Parameter< T >

A configurable parameter.


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

Generated using doxygen 1.8.17