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

XMLNode Class Reference

#include <XMLNode.hpp>

List of all members.

Public Methods

 XMLNode ()
 XMLNode (const XMLNode &node)
 XMLNode (const string &attribute, const string &value="")
 XMLNode (Node *node)
 XMLNode (Folder *folder, const int levels=1)
void addNode (XMLNode *node)
string getDoc (int indent=0)
string & getAttribute ()
void setAttribute (const string &attribute)
string & getValue ()
void setValue (const string &value)

Detailed Description

Represent one node and create the XBel representation of it.

Constructor & Destructor Documentation


Default constructor. Create an empty node.

XMLNode::XMLNode const XMLNode &    node

Copy constructor.

XMLNode::XMLNode const string &    attribute,
const string &    value = ""

Create a new attribute node with this element name and value.

XMLNode::XMLNode Node   node

Create an XML node from this node.

XMLNode::XMLNode Folder   folder,
const int    levels = 1

Create an XML node from this folder.

levels  Include that many sublevels.

Member Function Documentation

void XMLNode::addNode XMLNode *    node

Add the given node as a subnode.

string & XMLNode::getAttribute  

Get the attribute name.

string XMLNode::getDoc int    indent = 0

Return the XML representation include all the children of this XMLNode.

string & XMLNode::getValue  

Get the attribute value.

void XMLNode::setAttribute const string &    attribute

Set the attribute name.

void XMLNode::setValue const string &    value

Set the attribute value.

The documentation for this class was generated from the following files:
Generated on Sun Jan 20 21:00:00 2002 for bkmd by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001