Inherits YGP::IAttribute.
Public Member Functions | |
MetaEnumAttribute (const char *name, const MetaEnum &list, unsigned int &attr) | |
MetaEnumAttribute (const std::string &name, const MetaEnum &list, unsigned int &attr) | |
~MetaEnumAttribute () | |
virtual IAttribute * | clone () |
virtual bool | assignFromString (const char *value) const |
virtual bool | assign (const char *value, unsigned int) const |
unsigned int & | getAttribute () const |
virtual std::string | getValue () const |
virtual std::string | getFormattedValue () const |
YGP::MetaEnumAttribute::MetaEnumAttribute | ( | const char * | name, | |
const MetaEnum & | list, | |||
unsigned int & | attr | |||
) | [inline] |
Constructor; creates an attribute with the specified name, referencing the attribute value.
YGP::MetaEnumAttribute::MetaEnumAttribute | ( | const std::string & | name, | |
const MetaEnum & | list, | |||
unsigned int & | attr | |||
) | [inline] |
Constructor; creates an attribute with the specified name, referencing the attribute value.
YGP::MetaEnumAttribute::~MetaEnumAttribute | ( | ) | [inline] |
Destructor.
virtual bool YGP::MetaEnumAttribute::assign | ( | const char * | value, | |
unsigned int | ||||
) | const [inline, virtual] |
Assigns the passed text to the attribute value.
value | Value to assign | |
Length | of passed value |
Reimplemented from YGP::IAttribute.
bool YGP::MetaEnumAttribute::assignFromString | ( | const char * | value | ) | const [virtual] |
Assigs a string-value to the attribute; This value must be defined in the MetaEnum.
value | Value to assign |
Implements YGP::IAttribute.
virtual IAttribute* YGP::MetaEnumAttribute::clone | ( | ) | [inline, virtual] |
unsigned int& YGP::MetaEnumAttribute::getAttribute | ( | ) | const [inline] |
Returns a reference to the handled attribute value.
virtual std::string YGP::MetaEnumAttribute::getFormattedValue | ( | ) | const [inline, virtual] |
virtual std::string YGP::MetaEnumAttribute::getValue | ( | ) | const [inline, virtual] |