Parameter< T > Class Template Reference
[ConfigHandler - Runtime configuration from command line or config files]

Template implementation of VParamterNode, allows any variable to be set/read via stl iostreams. More...

#include <Parameter.hh>

Inheritance diagram for Parameter< T >:
VParameterNode

List of all members.

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.
Parameteroperator= (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

Detailed Description

template<class T>
class Parameter< T >

Template implementation of VParamterNode, allows any variable to be set/read via stl iostreams.

Definition at line 36 of file Parameter.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 20 Jun 2014 for daqman by  doxygen 1.6.1