Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

judo::Node Class Reference

Parent class for all XML objects. More...

#include <judo.hpp>

Inheritance diagram for judo::Node:

judo::CDATA judo::Element List of all members.

Public Member Functions

 Node (const std::string &name, Type ntype)
 Primary constructor.

const std::string & getName () const
 Accessor for the nodes name.

Node::Type getType () const
 Accessor for the Nodes type.

virtual std::string toString () const=0
 Accessor for the XML string representation of the Node.

virtual void accumulate (XMLAccumulator &acc) const=0
 Accumulator entry point for recursive XML serialization.


Detailed Description

Parent class for all XML objects.

Definition at line 65 of file judo.hpp.


Constructor & Destructor Documentation

judo::Node::Node const std::string &    name,
Type    ntype
[inline]
 

Primary constructor.

Parameters:
name Name of this element
type Node type classifier

Definition at line 79 of file judo.hpp.


Member Function Documentation

virtual void judo::Node::accumulate XMLAccumulator &    acc const [pure virtual]
 

Accumulator entry point for recursive XML serialization.

This is a virtual abstract method that is implemented by subclasses.

Parameters:
acc An instance of an XMLAccumulator

Implemented in judo::CDATA, and judo::Element.

const std::string& judo::Node::getName   const [inline]
 

Accessor for the nodes name.

Returns:
Reference to the name of the node

Definition at line 88 of file judo.hpp.

Referenced by judo::Element::accumulate(), jabberoo::Session::onElement(), jabberoo::Session::operator<<(), and judo::Element::toStringEx().

Node::Type judo::Node::getType   const [inline]
 

Accessor for the Nodes type.

Returns:
The type of the Node (Element CDATA)

Definition at line 95 of file judo.hpp.

virtual std::string judo::Node::toString   const [pure virtual]
 

Accessor for the XML string representation of the Node.

This is a virtual abstract method that is implemented by the child classes.

Returns:
The XML representation of an Node

Implemented in judo::CDATA, and judo::Element.


The documentation for this class was generated from the following file:
Generated on Thu Jul 24 13:31:57 2003 for jabberoo by doxygen1.3-rc3