CMS 3D CMS Logo

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
const std::vector< std::string > & getURLs() const
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
std::vector< std::string > files_
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
const std::string getSchemaLocation() const
const std::vector< std::string > & getFileNames() const
std::vector< std::string > urls_
DDLSAX2ConfigHandler(DDCompactView &cpv)
const bool doValidation() const
DDLSAX2ConfigHandler is the handler for the configuration file.
XERCES_CPP_NAMESPACE::Attributes Attributes
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.