#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) |
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.
bool Property::isValid | ( | ) | const |
Return if this is a valid property. Must have a known type.