Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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
27  Int_t ParseContext();
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