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

  PUBLIC
XMLBaseC::XMLBaseC(void)
XMLBaseC::XMLBaseC(bool)
XMLBaseC::EncodeLitteral(const StringC &)
XMLBaseC::DecodeLitteral(const StringC &)
XMLBaseC::Context(void)
XMLBaseC::IsContext(void) const
XMLBaseC::ContextName(void) const
XMLBaseC::Context(void) const
XMLBaseC::StartContext(const StringC &,bool)
XMLBaseC::StartContext(const StringC &,const RCHashC &,bool)
XMLBaseC::StartContext(const XMLElementC &)
XMLBaseC::EndOfContext(const StringC &)
XMLBaseC::EndOfContext(void)
XMLBaseC::IsStrict(void) const
XMLBaseC::IsContent(void) const
XMLBaseC::SetContent(bool)
XMLBaseC::LevelsNested(void) const
XMLBaseC::GetAttrib(const StringC &,StringC &)
XMLBaseC::SetAttrib(const StringC &,const StringC &)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   XMLBaseC   
 
Common XML operations.
 
include "Ravl/XMLStream.hh"
Source file:Ravl/Core/System/XMLStream.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Comments:
Stuff common to handling XML input and output.

Parent Classes: Derived Classes: Methods:
XMLBaseC()
Default constructor.
Creates an invalid handle.

XMLBaseC(bool)
Constructor.

static StringC EncodeLitteral(const StringC & str)
Convert a string into a form that will not confuse XML.

static StringC DecodeLitteral(const StringC & str)
Decode a string from its XML encoding to the original string.

XMLElementC & Context()
Access current context.

bool IsContext() const
Are we in a valid context ?

StringC ContextName() const
Get the name of the current context (the last open tag.)

const XMLElementC & Context() const
Access current context.

bool StartContext(const StringC & str,bool emptyTag = false)
Start a new element.

bool StartContext(const StringC & str,const RCHashC<StringC,StringC> & attrs,bool emptyTag = false)
Start a new element

bool StartContext(const XMLElementC & elem)
Start a new element

bool EndOfContext(const StringC & nm)
End the current context.

bool EndOfContext()
End the current context.

bool IsStrict() const
In strict mode ?
if true issue errors if XML consitancy check fails in reading or writing.

bool IsContent() const
Got content ?
True if content has been found.

void SetContent(bool cont)
Set got content.

UIntT LevelsNested() const
Number of open elements in the stack.

bool GetAttrib(const StringC & name,StringC & val)
Set string attribute.

void SetAttrib(const StringC & name,const StringC & val)
Set a string valued attribute.

#include "Ravl/RefCounter.hh"
const RCHandleC<XMLBaseBodyC> & operator =(const RCHandleC<XMLBaseBodyC> & oth)
Assign handle.

RCHandleC<XMLBaseBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<XMLBaseBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<XMLBaseBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

XMLBaseBodyC & Body()
Access body of object.

const XMLBaseBodyC & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<XMLBaseBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<XMLBaseBodyC> & obj)


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