CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DDLSAX2ConfigHandler.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_PARSER_DDL_SAX2_CONFIG_HANDLER_H
2 #define DETECTOR_DESCRIPTION_PARSER_DDL_SAX2_CONFIG_HANDLER_H
3 
7 
8 #include <vector>
9 #include <string>
10 #include <xercesc/sax2/Attributes.hpp>
11 
13 
24 public:
26  ~DDLSAX2ConfigHandler() override;
27 
28  // -----------------------------------------------------------------------
29  // Handlers for the SAX ContentHandler interface
30  // -----------------------------------------------------------------------
31  void startElement(const XMLCh* uri, const XMLCh* localname, const XMLCh* qname, const Attributes& attrs) override;
32 
33  const std::vector<std::string>& getFileNames() const;
34  const std::vector<std::string>& getURLs() const;
35  const std::string getSchemaLocation() const;
36  const bool doValidation() const;
37 
38 private:
40  std::vector<std::string> files_;
41  std::vector<std::string> urls_;
44 };
45 
46 #endif
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
const std::string getSchemaLocation() const
std::vector< std::string > files_
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
std::vector< std::string > urls_
const std::vector< std::string > & getURLs() const
DDLSAX2ConfigHandler(DDCompactView &cpv)
DDLSAX2ConfigHandler is the handler for the configuration file.
XERCES_CPP_NAMESPACE::Attributes Attributes
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
const std::vector< std::string > & getFileNames() const
const bool doValidation() const