Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

libsvx::Attribute Class Reference

The generic class containing Attribute informations attribute="value". More...

#include <attribute.h>

List of all members.

Public Methods

 Attribute (const std::string &AttributeString, const std::string the_name)
 Create an Attribute based on a XML attribute string.

 Attribute (const Attribute &a_attribute)
 Construct a clone of the class Attribute. More...

 ~Attribute ()
 destructor, free all the sub-informations.

const std::string & String () const
 return the string corresponding to the attribute.

const bool Bool () const
 return false if the attribute is "0" or "false" otherwise anything is considered true.

void XmlElement (TiXmlElement &the_element_to_fill)
 a method to fill an XML element with the specified attribute informations.

bool operator!= (const Attribute &the_object_to_compare) const

Protected Attributes

std::string m_String
 The string represented in the Attribute. It might be intrepreted by the inherited class.

std::string m_AttrName
 The attribute name name="value".


Detailed Description

The generic class containing Attribute informations attribute="value".

Definition at line 54 of file attribute.h.


Constructor & Destructor Documentation

Attribute::Attribute const Attribute &    a_attribute
 

Construct a clone of the class Attribute.

Construct a clone of the class Attribute

Definition at line 61 of file attribute.cxx.

References m_AttrName, and m_String.


The documentation for this class was generated from the following files:
Generated on Tue Apr 9 21:41:11 2002 for libsvx by doxygen1.2.15