The basic type an Option may be of. More...
#include <Option.h>
Public Member Functions | |
| Type () | |
| The default constructor. | |
| virtual | ~Type () |
| The destructor. | |
| virtual bool | validate (const ::yarp::os::Value &v, std::ostream *const output=NULL) const |
| Validates the given ::yarp::os::Value. | |
| virtual ::yarp::os::ConstString | toString () const |
| Returns a human readable string that describes this object. | |
The basic type an Option may be of.
This type accepts any value and is supposed to be extended to create more complex types.
Definition at line 50 of file Option.h.
| virtual ::yarp::os::ConstString vislab::yarp::util::Option::Type::toString | ( | ) | const [inline] |
Returns a human readable string that describes this object.
Reimplemented in vislab::yarp::util::Option::List, vislab::yarp::util::Option::Boolean, vislab::yarp::util::Option::Number, and vislab::yarp::util::Option::Vector.
Definition at line 78 of file Option.h.
Referenced by vislab::yarp::util::Option::toString().
{
return "<any value>";
}
| virtual bool vislab::yarp::util::Option::Type::validate | ( | const ::yarp::os::Value & | v, | |
| std::ostream *const | output = NULL | |||
| ) | const [inline, virtual] |
Validates the given ::yarp::os::Value.
| v | The ::yarp::os::Value to be validated. | |
| output | The stream to write possible error message to. |
Reimplemented in vislab::yarp::util::Option::List, vislab::yarp::util::Option::Boolean, vislab::yarp::util::Option::Number, and vislab::yarp::util::Option::Vector.
Definition at line 70 of file Option.h.
{
return true;
}
1.7.1