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 
14 #include <xercesc/dom/DOM.hpp>
15 #include <xercesc/dom/DOMCharacterData.hpp>
16 #include <xercesc/parsers/XercesDOMParser.hpp>
17 #include <xercesc/util/PlatformUtils.hpp>
18 #include <xercesc/framework/LocalFileFormatTarget.hpp>
19 #include <xercesc/util/XMLUni.hpp>
20 #include <xercesc/util/XMLURL.hpp>
21 #include <xercesc/framework/MemBufInputSource.hpp>
22 
23 
24 
25 
26 #include<iostream>
27 #include<string>
28 #include<vector>
29 #include<map>
30 
31 
32 
34 
35  public:
37  DQMParserBase();
39  virtual ~DQMParserBase();
41  void getDocument(std::string configFile, bool UseDB=false);
43  int countNodes(std::string tagName);
45  void getNewDocument(std::string configFile, bool UseDB=false);
47  xercesc::DOMDocument* doc(){return parser->getDocument();}
48  protected:
49  xercesc::XercesDOMParser* parser;
50 
51  private:
52 
53 
54 
55 };
56 
57 
58 #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:49
xercesc::DOMDocument * doc()
DOM Document.
Definition: DQMParserBase.h:47