class: exml::Attribute


Description:



Constructor and Destructor:

+                                Attribute   (void );
+ Attribute (const std::string & _name,
const std::string & _value);
+ virtual ~Attribute (void );

Synopsis:

#         std::string            m_name;
+ virtual void setName (const std::string & _name);
+ virtual const std::string & getName (void ) const;
+ virtual enum nodeType getType (void ) const;
+ virtual bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
+ virtual exml::Attribute* toAttribute (void );
+ virtual const exml::Attribute* toAttribute (void ) const;
+ virtual void clear (void );

Object Hierarchy:

+exml::Node
+--> exml::Attribute

Detail:

Attribute

+  Attribute (void );
Constructor


Attribute

+  Attribute (const std::string & _name,
const std::string & _value);
Constructor


~Attribute

+ virtual  ~Attribute (void );
Destructor


m_name

# std::string m_name;



setName

+ virtual void setName (const std::string & _name);
set the name of the attribute


getName

+ virtual const std::string & getName (void ) const;
get the current name of the Attribute


getType

+ virtual enum nodeType getType (void ) const;
get the node type.


iParse

+ virtual bool iParse (const std::string & _data,
int32_t & _pos,
bool _caseSensitive,
exml::filePos & _filePos,
exml::Document & _doc);
parse the Current node [pure VIRUAL]


iGenerate

+ virtual bool iGenerate (std::string & _data,
int32_t _indent) const;
generate a string with the tree of the xml


toAttribute

+ virtual exml::Attribute* toAttribute (void );
Cast the element in a Attribute if it is possible.


toAttribute

+ virtual const exml::Attribute* toAttribute (void ) const;
Cast the element in a Attribute if it is possible.


clear

+ virtual void clear (void );
clear the Node