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

XML_Tag Class Reference

xml element. More...

#include <xml.h>

Inheritance diagram for rs::xml::XML_Tag:

Inheritance graph
[legend]
Collaboration diagram for XML_Tag:

Collaboration graph
[legend]
List of all members.

Public Methods

 XML_Tag (const std::string &name_)
virtual ~XML_Tag ()
void add_attribute (const std::string &name_, const std::string &content_)
virtual void add_son (XML_Node *son_)
virtual void remove_son (XML_Node *son_)
virtual void open (std::ostream &out)
virtual void close (std::ostream &out)

Private Attributes

std::string name
XML_Nodeson
XML_Attributeattribute

Detailed Description

xml element.

Definition at line 102 of file xml.h.


Constructor & Destructor Documentation

XML_Tag const std::string &    name_
 

Create a new xml element

Parameters:
name_  element name

Definition at line 94 of file xml.cpp.

~XML_Tag   [virtual]
 

Definition at line 101 of file xml.cpp.


Member Function Documentation

void add_attribute const std::string &    name_,
const std::string &    content_
 

add an attribute to the XML_Tag

Parameters:
name_  attribute name
content_  attribute value

Definition at line 110 of file xml.cpp.

void add_son XML_Node   son_ [virtual]
 

Implements XML_Node.

Definition at line 117 of file xml.cpp.

void remove_son XML_Node   son_ [virtual]
 

Implements XML_Node.

Definition at line 124 of file xml.cpp.

void open std::ostream &    out [virtual]
 

Implements XML_Node.

Definition at line 132 of file xml.cpp.

void close std::ostream &    out [virtual]
 

Implements XML_Node.

Definition at line 143 of file xml.cpp.

Referenced by XML_Tag::~XML_Tag().


Member Data Documentation

std::string name [private]
 

Definition at line 104 of file xml.h.

Referenced by XML_Tag::close(), and XML_Tag::open().

XML_Node* son [private]
 

Definition at line 105 of file xml.h.

Referenced by XML_Tag::add_son(), and XML_Tag::remove_son().

XML_Attribute* attribute [private]
 

Definition at line 106 of file xml.h.

Referenced by XML_Tag::add_attribute(), XML_Tag::close(), and XML_Tag::open().


The documentation for this class was generated from the following files:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen