Logo ROOT   6.08/07
Reference Guide
TDOMParser.h
Go to the documentation of this file.
1 // @(#)root/xmlparser:$Id$
2 // Author: Jose Lo 12/4/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TDOMParser
13 #define ROOT_TDOMParser
14 
15 #ifndef ROOT_TXMLParser
16 #include "TXMLParser.h"
17 #endif
18 
19 #ifndef ROOT_TXMLDocument
20 #include "TXMLDocument.h"
21 #endif
22 
23 
24 class TDOMParser : public TXMLParser {
25 
26 private:
27  TXMLDocument *fTXMLDoc; ///< xmlDoc
28 
29  TDOMParser(const TDOMParser&); // Not implemented
30  TDOMParser& operator=(const TDOMParser&); // Not implemented
32 
33 public:
34  TDOMParser();
35  virtual ~TDOMParser();
36 
37  virtual Int_t ParseFile(const char *filename);
38  virtual Int_t ParseBuffer(const char *buffer, Int_t len);
39  virtual void ReleaseUnderlying();
40 
41  virtual TXMLDocument *GetXMLDocument() const;
42 
43  ClassDef(TDOMParser, 0); // DOM Parser
44 };
45 
46 #endif
virtual ~TDOMParser()
TDOMParser destructor, it calls ReleaseUnderlying().
Definition: TDOMParser.cxx:44
virtual void ReleaseUnderlying()
Release any existing document.
Definition: TDOMParser.cxx:52
int Int_t
Definition: RtypesCore.h:41
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
Definition: TXMLDocument.h:28
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Int_t ParseBuffer(const char *buffer, Int_t len)
It parses a buffer, much like ParseFile().
Definition: TDOMParser.cxx:94
TDOMParser & operator=(const TDOMParser &)
virtual Int_t ParseFile(const char *filename)
Parse the XML file where filename is the XML file name.
Definition: TDOMParser.cxx:70
TXMLParser is an abstract class which interfaces with Libxml2.
Definition: TXMLParser.h:30
TDOMParser()
TDOMParser constructor.
Definition: TDOMParser.cxx:37
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
Definition: TDOMParser.cxx:144
TXMLDocument * fTXMLDoc
xmlDoc
Definition: TDOMParser.h:27
Int_t ParseContext()
Creates a XML document for the parser.
Definition: TDOMParser.cxx:117