Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
20class TDOMParser : public TXMLParser {
21
22private:
23 TXMLDocument *fTXMLDoc; ///< xmlDoc
24
25 TDOMParser(const TDOMParser&) = delete;
26 TDOMParser& operator=(const TDOMParser&) = delete;
28
29public:
30 TDOMParser();
31 ~TDOMParser() override;
32
33 Int_t ParseFile(const char *filename) override;
34 Int_t ParseBuffer(const char *buffer, Int_t len) override;
35 void ReleaseUnderlying() override;
36
37 virtual TXMLDocument *GetXMLDocument() const;
38
39 ClassDefOverride(TDOMParser, 0); // DOM Parser
40};
41
42#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
void ReleaseUnderlying() override
Release any existing document.
Int_t ParseContext()
Creates a XML document for the parser.
TDOMParser(const TDOMParser &)=delete
TDOMParser()
TDOMParser constructor.
Int_t ParseBuffer(const char *buffer, Int_t len) override
It parses a buffer, much like ParseFile().
TDOMParser & operator=(const TDOMParser &)=delete
TXMLDocument * fTXMLDoc
xmlDoc
Definition TDOMParser.h:23
Int_t ParseFile(const char *filename) override
Parse the XML file where filename is the XML file name.
~TDOMParser() override
TDOMParser destructor, it calls ReleaseUnderlying().
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
TXMLParser is an abstract class which interfaces with Libxml2.
Definition TXMLParser.h:24