YGP::Attribute< T > Class Template Reference

Template representing an attribute of a specific type. More...

Inherits YGP::IAttribute.

List of all members.

Public Member Functions

 Attribute (const char *name, T &attr)
 Attribute (const std::string &name, T &attr)
 ~Attribute ()
virtual IAttributeclone ()
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


Detailed Description

template<class T>
class YGP::Attribute< T >

Template representing an attribute of a specific type.

This class is designed to be used by AttributeValues (and derived types), but there exists specializations for:


Constructor & Destructor Documentation

template<class T >
YGP::Attribute< T >::Attribute ( const char *  name,
T &  attr 
) [inline]

Constructor; creates an attribute with the specified name, referencing the attribute value.

template<class T >
YGP::Attribute< T >::Attribute ( const std::string &  name,
T &  attr 
) [inline]

Constructor; creates an attribute with the specified name, referencing the attribute value.

template<class T >
YGP::Attribute< T >::~Attribute (  )  [inline]

Destructor.


Member Function Documentation

template<>
bool YGP::Attribute< std::string >::assign ( const char *  value,
unsigned int  length 
) const [inline, virtual]

Returns:
true on success; false otherwise

Reimplemented from YGP::IAttribute.

template<>
bool YGP::Attribute< char * >::assign ( const char *  value,
unsigned int   
) const [inline, virtual]

Assigns the passed text to the attribute value.

Parameters:
value Value to assign
Length of passed value

Reimplemented from YGP::IAttribute.

template<class T >
virtual bool YGP::Attribute< T >::assign ( const char *  value,
unsigned int   
) const [inline, virtual]

Assigns the passed text to the attribute value.

Parameters:
value Value to assign
Length of passed value

Reimplemented from YGP::IAttribute.

template<>
bool YGP::Attribute< std::string >::assignFromString ( const char *  value  )  const [inline, virtual]

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< double >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< unsigned long >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< long >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< unsigned int >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< int >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< unsigned short >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< short >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< bool >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< char * >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<>
bool YGP::Attribute< char >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<class T >
virtual bool YGP::Attribute< T >::assignFromString ( const char *  value  )  const [inline, virtual]

Assigns the passed text to the attribute value.

Returns:
true on success; false otherwise

Implements YGP::IAttribute.

template<class T >
virtual IAttribute* YGP::Attribute< T >::clone (  )  [inline, virtual]

Returns a copy of the attribute.

Implements YGP::IAttribute.

template<class T >
T& YGP::Attribute< T >::getAttribute (  )  const [inline]

Returns a reference to the handled attribute value.

template<>
std::string YGP::Attribute< std::string >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< double >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned long >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< long >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned int >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< int >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned short >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< short >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< bool >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< char * >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
std::string YGP::Attribute< char >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<class T >
virtual std::string YGP::Attribute< T >::getFormattedValue (  )  const [inline, virtual]

Returns the value of the attribute (value) as formatted string.

Reimplemented from YGP::IAttribute.

template<>
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.

template<>
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.

template<class T >
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.

template<>
std::string YGP::Attribute< std::string >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< double >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned long >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< long >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned int >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< int >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< unsigned short >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< short >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< bool >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< char * >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<>
std::string YGP::Attribute< char >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.

template<class T >
virtual std::string YGP::Attribute< T >::getValue (  )  const [inline, virtual]

Returns the value of the attribute (value).

Implements YGP::IAttribute.


The documentation for this class was generated from the following file:

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:27 2009 by doxygen 1.5.8