Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - XML - XMLTreeBodyC
 

  PUBLIC
XMLTreeBodyC::XMLTreeBodyC(void)
XMLTreeBodyC::XMLTreeBodyC(const StringC &,RCHashC &)
XMLTreeBodyC::XMLTreeBodyC(XMLIStreamC &)
XMLTreeBodyC::Read(XMLIStreamC &)
XMLTreeBodyC::Name(void) const
XMLTreeBodyC::Dump(ostream &,int) const
XMLTreeBodyC::Indent(ostream &,int)
HashTreeBodyC::Node(const KeyT &)
HashTreeBodyC::IsLeaf(void) const
HashTreeBodyC::Follow(const DListC &)
HashTreeBodyC::Child(const KeyT &,HashTreeNodeC &)
HashTreeBodyC::Add(const KeyT &,const DataT &)
HashTreeBodyC::Add(const KeyT &,const HashTreeC &)
HashTreeBodyC::Children(void)
HashTreeBodyC::Children(void) const
HashTreeBodyC::Dump(ostream &,int) const
HashTreeNodeBodyC::Data(void)
HashTreeNodeBodyC::Data(void) const
HashTreeNodeBodyC::IsLeaf(void) const
HashTreeNodeBodyC::Dump(ostream &,int) const
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   XMLTreeBodyC   
 
XML parse tree.
 
include "Ravl/XMLTree.hh"
Source file:Ravl/Core/System/XMLTree.hh
User Level:Develop
Library:RavlCore
Example:exXMLTree.cc
In Scope:RavlN

Parent Classes: Variables:
StringC name;

Methods:
XMLTreeBodyC()
Default constructor.

XMLTreeBodyC(const StringC & nname,RCHashC<StringC,StringC> & attrs)
Construct from a name and an attribute table.

XMLTreeBodyC(XMLIStreamC & in)
Construct from an XMLStream.

bool Read(XMLIStreamC & in)
Read from a stream using this node as the root.

const StringC & Name() const
Access name.

ostream & Dump(ostream & out,int level = 0) const
Dump tree in a human readable format.

static ostream & Indent(ostream & out,int level)

#include "Ravl/HashTree.hh"
HashTreeNodeC<StringC,RCHashC<StringC,StringC>> & Node(const StringC & key)
Access child node.

bool IsLeaf() const
Test if node is a leaf in the tree.

HashTreeNodeC<StringC,RCHashC<StringC,StringC>> Follow(const DListC<StringC> & lst)
Follow list of keys to a node.
If node is not found then an invalid handle is returned.

bool Child(const StringC & key,HashTreeNodeC<StringC,RCHashC<StringC,StringC>> & child)
lookup child in tree.
Returns true and updates 'child' if child is found.

bool Add(const StringC & key,const RCHashC<StringC,StringC> & data)
Add a child with given key and data.
returns false if child exists.

bool Add(const StringC & key,const HashTreeC<StringC,RCHashC<StringC,StringC>> & subtree)
Add a sub tree
returns false if child exists.

HashC<StringC,HashTreeNodeC<StringC,RCHashC<StringC,StringC>>> & Children()
Access table of children.

const HashC<StringC,HashTreeNodeC<StringC,RCHashC<StringC,StringC>>> & Children() const
Access table of children.

ostream & Dump(ostream & out,int level = 0) const
Dump in a easly readable format.
This is a little poor at the moment, its really expecting a derived class to provide a better function.

RCHashC<StringC,StringC> & Data()
Access data.

const RCHashC<StringC,StringC> & Data() const
Access data.

bool IsLeaf() const
Test if node is a leaf in the tree.

ostream & Dump(ostream & out,int level = 0) const
Dump in a easly readable format.

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002