Logo ROOT   6.14/05
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 #include "TXMLParser.h"
16 
17 #include "TXMLDocument.h"
18 
19 
20 class TDOMParser : public TXMLParser {
21 
22 private:
23  TXMLDocument *fTXMLDoc; ///< xmlDoc
24 
25  TDOMParser(const TDOMParser&); // Not implemented
26  TDOMParser& operator=(const TDOMParser&); // Not implemented
28 
29 public:
30  TDOMParser();
31  virtual ~TDOMParser();
32 
33  virtual Int_t ParseFile(const char *filename);
34  virtual Int_t ParseBuffer(const char *buffer, Int_t len);
35  virtual void ReleaseUnderlying();
36 
37  virtual TXMLDocument *GetXMLDocument() const;
38 
39  ClassDef(TDOMParser, 0); // DOM Parser
40 };
41 
42 #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:24
#define ClassDef(name, id)
Definition: Rtypes.h:320
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:24
TDOMParser()
TDOMParser constructor.
Definition: TDOMParser.cxx:37
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
Definition: TDOMParser.cxx:144
TXMLDocument * fTXMLDoc
xmlDoc
Definition: TDOMParser.h:23
Int_t ParseContext()
Creates a XML document for the parser.
Definition: TDOMParser.cxx:117