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 {
25 
26  public:
27 
29  ~DDLSAX2ConfigHandler() override;
30 
31  // -----------------------------------------------------------------------
32  // Handlers for the SAX ContentHandler interface
33  // -----------------------------------------------------------------------
34  void startElement( const XMLCh* uri, const XMLCh* localname,
35  const XMLCh* qname, const Attributes& attrs) override;
36 
37  const std::vector<std::string>& getFileNames() const;
38  const std::vector<std::string>& getURLs() const;
39  const std::string getSchemaLocation() const;
40  const bool doValidation() const;
41 
42  private:
44  std::vector<std::string> files_;
45  std::vector<std::string> urls_;
48 };
49 
50 #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:80
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