Template implementation of VParamterNode, allows any variable to be set/read via stl iostreams. More...
#include <Parameter.hh>
Public Types | |
typedef T | param_type |
access to the type of parameter for copy usage | |
Public Member Functions | |
Parameter (T &t, const std::string &key="", const std::string &helptext="") | |
DefaultConstructor. | |
Parameter (const Parameter &right) | |
Copy constructor. | |
virtual | ~Parameter () |
Desctructor. | |
Parameter & | operator= (const Parameter &right) |
Assignment operator. | |
const T & | GetValue () const |
Return the underlying variable by reference. | |
const T * | GetPointer () const |
Return the underlying variable by pointer. | |
virtual int | PrintHelp (const std::string &myname="") const |
Print information about this parameter. | |
virtual Parameter< T > * | Clone (const void *from, void *to) const |
Clone to new ParameterList. | |
Protected Member Functions | |
virtual std::istream & | ReadFrom (std::istream &in, bool single=false) |
Read the underlying variable from an istream. | |
virtual std::ostream & | WriteTo (std::ostream &out, bool showhelp=false, int indent=0) const |
Write the underlying variable to an ostream. | |
Private Attributes | |
T & | _val |
reference to the wrapped underyling variable |
Template implementation of VParamterNode, allows any variable to be set/read via stl iostreams.
Definition at line 36 of file Parameter.hh.