opspace::StringParameter Class Reference

Implementation for string parameters: a single std::string value. More...

#include <Parameter.hpp>

Inheritance diagram for opspace::StringParameter:

Inheritance graph
[legend]
Collaboration diagram for opspace::StringParameter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringParameter (std::string const &name, parameter_flags_t flags, ParameterReflection const *checker, std::string *instance)
virtual std::string const * getString () const
virtual Status set (std::string const &value)
virtual void dump (std::ostream &os, std::string const &prefix) const

Protected Attributes

std::string * string_


Detailed Description

Implementation for string parameters: a single std::string value.

Definition at line 120 of file Parameter.hpp.


Constructor & Destructor Documentation

opspace::StringParameter::StringParameter ( std::string const &  name,
parameter_flags_t  flags,
ParameterReflection const *  checker,
std::string *  instance 
)

Definition at line 181 of file Parameter.cpp.


Member Function Documentation

virtual std::string const* opspace::StringParameter::getString (  )  const [inline, virtual]

Reimplemented from opspace::Parameter.

Definition at line 126 of file Parameter.hpp.

References string_.

Status opspace::StringParameter::set ( std::string const &  value  )  [virtual]

Reimplemented from opspace::Parameter.

Definition at line 192 of file Parameter.cpp.

References opspace::ParameterReflection::check(), opspace::Parameter::checker_, jspace::Status::errstr, opspace::Parameter::flags_, jspace::Status::ok, opspace::PARAMETER_FLAG_READONLY, and string_.

Here is the call graph for this function:

void opspace::StringParameter::dump ( std::ostream &  os,
std::string const &  prefix 
) const [virtual]

Reimplemented from opspace::Parameter.

Definition at line 212 of file Parameter.cpp.

References opspace::Parameter::name_, and string_.


Member Data Documentation

std::string* opspace::StringParameter::string_ [protected]

Definition at line 130 of file Parameter.hpp.

Referenced by dump(), getString(), and set().


The documentation for this class was generated from the following files:
Generated on Fri Aug 26 01:33:24 2011 for Stanford Whole-Body Control Framework by  doxygen 1.5.4