library: libXMLIO #include "TXMLEngine.h" |
TXMLEngine
class description - source file - inheritance tree (.pdf)
protected:
XMLAttrPointer_t AllocateAttr(int namelen, int valuelen, XMLNodePointer_t xmlnode)
XMLNodePointer_t AllocateNode(int namelen, XMLNodePointer_t parent)
XMLNsPointer_t FindNs(XMLNodePointer_t xmlnode, const char* nsname)
char* Makenstr(const char* start, int len)
char* Makestr(const char* str)
void OutputValue(Char_t* value, TXMLOutputStream* out)
XMLNodePointer_t ReadNode(XMLNodePointer_t xmlparent, TXMLInputStream* inp, Int_t& resvalue)
void SaveNode(XMLNodePointer_t xmlnode, TXMLOutputStream* out, Int_t layout, Int_t level)
void TruncateNsExtension(XMLNodePointer_t xmlnode)
void UnpackSpecialCharacters(char* target, const char* source, int srclen)
public:
TXMLEngine()
TXMLEngine(const TXMLEngine&)
virtual ~TXMLEngine()
void AddChild(XMLNodePointer_t parent, XMLNodePointer_t child)
void AssignDtd(XMLDocPointer_t xmldoc, const char* dtdname, const char* rootname)
static TClass* Class()
void CleanNode(XMLNodePointer_t xmlnode)
XMLNodePointer_t DocGetRootElement(XMLDocPointer_t xmldoc)
void DocSetRootElement(XMLDocPointer_t xmldoc, XMLNodePointer_t xmlnode)
void FreeAttr(XMLNodePointer_t xmlnode, const char* name)
void FreeDoc(XMLDocPointer_t xmldoc)
void FreeNode(XMLNodePointer_t xmlnode)
const char* GetAttr(XMLNodePointer_t xmlnode, const char* name) const
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode)
Int_t GetIntAttr(XMLNodePointer_t node, const char* name)
XMLNodePointer_t GetNext(XMLNodePointer_t xmlnode)
const char* GetNodeContent(XMLNodePointer_t xmlnode) const
const char* GetNodeName(XMLNodePointer_t xmlnode) const
XMLNodePointer_t GetParent(XMLNodePointer_t xmlnode)
Bool_t HasAttr(XMLNodePointer_t xmlnode, const char* name)
virtual TClass* IsA() const
Bool_t IsEmptyNode(XMLNodePointer_t)
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t, const char* name, const char* value)
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns, const char* name, const char* content = "0")
XMLDocPointer_t NewDoc(const char* version = "0")
XMLAttrPointer_t NewIntAttr(XMLNodePointer_t xmlnode, const char* name, Int_t value)
XMLNsPointer_t NewNS(XMLNodePointer_t xmlnode, const char* reference, const char* name = "0")
TXMLEngine& operator=(const TXMLEngine&)
XMLDocPointer_t ParseFile(const char* filename)
void SaveDoc(XMLDocPointer_t xmldoc, const char* filename, Int_t layout = 1)
void ShiftToNext(XMLNodePointer_t& xmlnode)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
void SkipEmpty(XMLNodePointer_t&)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
void UnlinkFreeNode(XMLNodePointer_t xmlnode)
void UnlinkNode(XMLNodePointer_t node)
Bool_t ValidateDocument(XMLDocPointer_t, Bool_t = kFALSE)
This class is used to write and read xml files.
It makes simplified parsing of xml files, but does not required
any external libraries like libxml2 or other
________________________________________________________________________
TXMLEngine()
~TXMLEngine()
Bool_t HasAttr(XMLNodePointer_t xmlnode, const char* name)
const char* GetAttr(XMLNodePointer_t xmlnode, const char* name)
Int_t GetIntAttr(XMLNodePointer_t xmlnode, const char* name)
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t,
const char* name, const char* value)
XMLAttrPointer_t NewIntAttr(XMLNodePointer_t xmlnode,
const char* name,
Int_t value)
void FreeAttr(XMLNodePointer_t xmlnode, const char* name)
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns,
const char* name, const char* content)
XMLNsPointer_t NewNS(XMLNodePointer_t xmlnode, const char* reference, const char* name)
void AddChild(XMLNodePointer_t parent, XMLNodePointer_t child)
void UnlinkNode(XMLNodePointer_t xmlnode)
void FreeNode(XMLNodePointer_t xmlnode)
void UnlinkFreeNode(XMLNodePointer_t xmlnode)
const char* GetNodeName(XMLNodePointer_t xmlnode)
const char* GetNodeContent(XMLNodePointer_t xmlnode)
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode)
XMLNodePointer_t GetParent(XMLNodePointer_t xmlnode)
XMLNodePointer_t GetNext(XMLNodePointer_t xmlnode)
void ShiftToNext(XMLNodePointer_t &xmlnode)
void CleanNode(XMLNodePointer_t xmlnode)
XMLDocPointer_t NewDoc(const char* version)
void AssignDtd(XMLDocPointer_t xmldoc, const char* dtdname, const char* rootname)
void FreeDoc(XMLDocPointer_t xmldoc)
void SaveDoc(XMLDocPointer_t xmldoc, const char* filename, Int_t layout)
void DocSetRootElement(XMLDocPointer_t xmldoc, XMLNodePointer_t xmlnode)
XMLNodePointer_t DocGetRootElement(XMLDocPointer_t xmldoc)
XMLDocPointer_t ParseFile(const char* filename)
char* Makestr(const char* str)
char* Makenstr(const char* str, int len)
XMLNodePointer_t AllocateNode(int namelen, XMLNodePointer_t parent)
fNumNodes++;
XMLAttrPointer_t AllocateAttr(int namelen, int valuelen, XMLNodePointer_t xmlnode)
XMLNsPointer_t FindNs(XMLNodePointer_t xmlnode, const char* name)
void TruncateNsExtension(XMLNodePointer_t xmlnode)
void UnpackSpecialCharacters(char* target, const char* source, int srclen)
void OutputValue(char* value, TXMLOutputStream* out)
void SaveNode(XMLNodePointer_t xmlnode, TXMLOutputStream* out, Int_t layout, Int_t level)
XMLNodePointer_t ReadNode(XMLNodePointer_t xmlparent, TXMLInputStream* inp, Int_t& resvalue)
resvalue <= 0 if error
resvalue == 1 if this is endnode of parent
resvalue == 2 if this is child
Inline Functions
Bool_t IsEmptyNode(XMLNodePointer_t)
void SkipEmpty(XMLNodePointer_t&)
Bool_t ValidateDocument(XMLDocPointer_t, Bool_t = kFALSE)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TXMLEngine TXMLEngine(const TXMLEngine&)
TXMLEngine& operator=(const TXMLEngine&)
Author: Sergey Linev 10.05.2004
Last update: root/xml:$Name: $:$Id: TXMLEngine.cxx,v 1.14 2005/09/06 09:34:48 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.