Inherits YGP::IAttribute.
Public Member Functions | |
| Attribute (const char *name, T &attr) | |
| Attribute (const std::string &name, T &attr) | |
| ~Attribute () | |
| virtual IAttribute * | clone () |
| virtual bool | assignFromString (const char *value) const |
| virtual bool | assign (const char *value, unsigned int) const |
| T & | getAttribute () const |
| virtual std::string | getValue () const |
| virtual std::string | getFormattedValue () const |
| virtual std::string | getQuotedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assign (const char *value, unsigned int length) const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| std::string | getQuotedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| bool | assignFromString (const char *value) const |
| template<> | |
| bool | assign (const char *value, unsigned int length) const |
| template<> | |
| std::string | getValue () const |
| template<> | |
| std::string | getFormattedValue () const |
| template<> | |
| std::string | getQuotedValue () const |
This class is designed to be used by AttributeValues (and derived types), but there exists specializations for:
| YGP::Attribute< T >::Attribute | ( | const char * | name, | |
| T & | attr | |||
| ) | [inline] |
Constructor; creates an attribute with the specified name, referencing the attribute value.
| YGP::Attribute< T >::Attribute | ( | const std::string & | name, | |
| T & | attr | |||
| ) | [inline] |
Constructor; creates an attribute with the specified name, referencing the attribute value.
| YGP::Attribute< T >::~Attribute | ( | ) | [inline] |
Destructor.
| bool YGP::Attribute< std::string >::assign | ( | const char * | value, | |
| unsigned int | length | |||
| ) | const [inline, virtual] |
| bool YGP::Attribute< char * >::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.
| virtual bool YGP::Attribute< T >::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::Attribute< std::string >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
| bool YGP::Attribute< double >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< unsigned long >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< long >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< unsigned int >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< int >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< unsigned short >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< short >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< bool >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< char * >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| bool YGP::Attribute< char >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| virtual bool YGP::Attribute< T >::assignFromString | ( | const char * | value | ) | const [inline, virtual] |
Assigns the passed text to the attribute value.
true on success; false otherwise Implements YGP::IAttribute.
| virtual IAttribute* YGP::Attribute< T >::clone | ( | ) | [inline, virtual] |
| T& YGP::Attribute< T >::getAttribute | ( | ) | const [inline] |
Returns a reference to the handled attribute value.
| std::string YGP::Attribute< std::string >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< double >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned long >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< long >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned int >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< int >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned short >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< short >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< bool >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< char * >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< char >::getFormattedValue | ( | ) | const [inline, virtual] |
| virtual std::string YGP::Attribute< T >::getFormattedValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< std::string >::getQuotedValue | ( | ) | const [inline, virtual] |
Returns the value of the attribute (value) as quoted string, if necessary.
Reimplemented from YGP::IAttribute.
| std::string YGP::Attribute< char * >::getQuotedValue | ( | ) | const [inline, virtual] |
Returns the value of the attribute (value) as quoted string, if necessary.
Reimplemented from YGP::IAttribute.
| virtual std::string YGP::Attribute< T >::getQuotedValue | ( | ) | const [inline, virtual] |
Returns the value of the attribute (value) as quoted string, if necessary.
Reimplemented from YGP::IAttribute.
| std::string YGP::Attribute< std::string >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< double >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned long >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< long >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned int >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< int >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< unsigned short >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< short >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< bool >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< char * >::getValue | ( | ) | const [inline, virtual] |
| std::string YGP::Attribute< char >::getValue | ( | ) | const [inline, virtual] |
| virtual std::string YGP::Attribute< T >::getValue | ( | ) | const [inline, virtual] |