CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMParserBase.h
Go to the documentation of this file.
1 #ifndef DQMParserBase_H
2 #define DQMParserBase_H
3 
12 #include <xercesc/dom/DOM.hpp>
13 #include <xercesc/dom/DOMCharacterData.hpp>
14 #include <xercesc/parsers/XercesDOMParser.hpp>
16 #include <xercesc/framework/LocalFileFormatTarget.hpp>
17 #include <xercesc/util/XMLUni.hpp>
18 #include <xercesc/util/XMLURL.hpp>
19 #include <xercesc/framework/MemBufInputSource.hpp>
20 
21 
22 
23 
24 #include<iostream>
25 #include<string>
26 #include<vector>
27 #include<map>
28 
29 
30 
32 
33  public:
35  DQMParserBase();
37  virtual ~DQMParserBase();
39  void getDocument(std::string configFile, bool UseDB=false);
41  int countNodes(std::string tagName);
43  void getNewDocument(std::string configFile, bool UseDB=false);
45  xercesc::DOMDocument* doc(){return parser->getDocument();}
46  protected:
47  xercesc::XercesDOMParser* parser;
48 
49  private:
50 
51 
52 
53 };
54 
55 
56 #endif
void getDocument(std::string configFile, bool UseDB=false)
Methor that parses the xml file configFile.
int countNodes(std::string tagName)
Returns the number of nodes with given name.
void getNewDocument(std::string configFile, bool UseDB=false)
Parses a new Document.
DQMParserBase()
Creator.
virtual ~DQMParserBase()
Destructor.
xercesc::XercesDOMParser * parser
Definition: DQMParserBase.h:47
xercesc::DOMDocument * doc()
DOM Document.
Definition: DQMParserBase.h:45