13#define DECLARE_TYPE( TYPE, NAME ) \
16 static const std::string n( NAME ); \
39 static const std::string dummy(
"<error>" );
70 std::cout <<
"Property::setFrom: Property not set!" << std::endl;
77 std::cout <<
"Property::getString: method not implemented" << std::endl;
78 return StatusCode::FAILURE;
82 std::cout <<
"Property::getCastString: method not implemented" << std::endl;
83 return StatusCode::FAILURE;
87 std::cout <<
"Property::setString: method not implemented" << std::endl;
88 return StatusCode::FAILURE;
#define DECLARE_TYPE(TYPE, NAME)
Macro used in implementing the type->name translation function.
static const std::string & name(Type type)
Function returning a user-readable name for a property type.
Type type() const
Return the type index.
bool isValid() const
Return if this is a valid property.
virtual StatusCode getString(std::string &result) const
get the property as a string
Type m_type
The type of the property.
const std::string & typeName() const
Return the type name.
virtual int setFrom(const Property &rhs)
Type
Property type enumeration.
virtual StatusCode setString(const std::string &value)
set the property from a string
Property()
Default constructor.
virtual StatusCode getCastString(std::string &result) const
get the property as a string I can pas to setString