Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:58:06

0001 // @(#)root/xmlparser:$Id$
0002 // Author: Jose Lo   12/4/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TXMLDocument
0013 #define ROOT_TXMLDocument
0014 
0015 #include "TObject.h"
0016 
0017 struct _xmlDoc;
0018 class TXMLNode;
0019 
0020 
0021 class TXMLDocument : public TObject {
0022 
0023 private:
0024    TXMLDocument(const TXMLDocument&) = delete;
0025    TXMLDocument& operator=(const TXMLDocument&) = delete;
0026 
0027    _xmlDoc  *fXMLDoc;           // libxml xml doc
0028    TXMLNode *fRootNode;         // the root node
0029 
0030 public:
0031    TXMLDocument(_xmlDoc *doc);
0032    ~TXMLDocument() override;
0033 
0034    TXMLNode   *GetRootNode() const;
0035 
0036    const char *Version() const;
0037    const char *Encoding() const;
0038    const char *URL() const;
0039 
0040    ClassDefOverride(TXMLDocument,0)  // XML document created by the DOM parser
0041 };
0042 
0043 #endif