#include <Property.h>
Public Types | |
| enum | Type { UNKNOWNTYPE, BOOL, INT, FLOAT, DOUBLE, STRING, INTVECTOR, FLOATVECTOR, STRINGVECTOR, TOOLHANDLE, TOOLHANDLEARRAY } |
Property type enumeration. | |
| typedef std::vector< int > | IntVector |
| Convenience type declaration for an integer vector. | |
| typedef std::vector< float > | FloatVector |
| Convenience type declaration for a float vector. | |
| typedef std::vector< std::string > | StringVector |
| Convenience type declaration for a string vector. | |
Public Member Functions | |
| Property () | |
| Default constructor. | |
| Property (Type type) | |
| Constructor with a type. | |
| virtual | ~Property () |
| Destructor. | |
| bool | isValid () const |
| Type | type () const |
| Return the type index. | |
| const std::string & | typeName () const |
| Return the type name. | |
| virtual int | setFrom (const Property &rhs) |
| virtual StatusCode | getString (std::string &result) const |
| get the property as a string | |
| virtual StatusCode | setString (const std::string &value) |
| set the property from a string | |
Static Public Member Functions | |
| static const std::string & | name (Type type) |
| Function returning a user-readable name for a property type. | |
Support class for PropertyMgr
Base class for all property types that can be set on a tool.
| StatusCode Property::getString | ( | std::string & | result | ) | const [virtual] |
get the property as a string
Reimplemented in TProperty< T >.
| bool Property::isValid | ( | ) | const |
Return if this is a valid property. Must have a known type.
| StatusCode Property::setString | ( | const std::string & | value | ) | [virtual] |
set the property from a string
Reimplemented in TProperty< T >.
1.6.1