Public Member Functions | Protected Attributes | Friends
ParamT< T > Class Template Reference

Templatized parameter class. More...

#include <Param.hh>

Inheritance diagram for ParamT< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ParamT (const std::string &_key, const std::string &_default, bool _required)
 Constructor.
virtual ~ParamT ()
 Destructor.
virtual void Update ()
virtual std::string GetAsString () const
 Get the parameter value as a string.
virtual bool SetFromString (const std::string &_value)
 Set the parameter value from a string.
virtual std::string GetDefaultAsString () const
virtual bool Set (const std::string &_str)
 Set the parameter value from a string.
GetValue () const
 Get the value.
void SetValue (const T &_value)
 Set the value of the parameter.
virtual void Reset ()
 Reset to default value.
virtual boost::shared_ptr< ParamClone () const
operator* () const

Protected Attributes

value
defaultValue

Friends

std::ostream & operator<< (std::ostream &_out, const ParamT< T > &_p)

Detailed Description

template<typename T>
class sdf::ParamT< T >

Templatized parameter class.


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