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
DDLSAX2ConfigHandler::startElement
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
Definition: DDLSAX2ConfigHandler.cc:32
DDLSAX2ConfigHandler::getSchemaLocation
const std::string getSchemaLocation() const
Definition: DDLSAX2ConfigHandler.cc:60
DDLSAX2ConfigHandler::urls_
std::vector< std::string > urls_
Definition: DDLSAX2ConfigHandler.h:41
DDLSAX2Handler.h
DDCompactView.h
DDLSAX2ConfigHandler
DDLSAX2ConfigHandler is the handler for the configuration file.
Definition: DDLSAX2ConfigHandler.h:23
DDLSAX2ConfigHandler::cpv_
DDCompactView & cpv_
Definition: DDLSAX2ConfigHandler.h:43
DDLSAX2ConfigHandler::schemaLocation_
std::string schemaLocation_
Definition: DDLSAX2ConfigHandler.h:42
DDLSAX2Handler
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
Definition: DDLSAX2Handler.h:27
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DDLSAX2ConfigHandler::doValidation
const bool doValidation() const
Definition: DDLSAX2ConfigHandler.cc:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDLSAX2ConfigHandler::~DDLSAX2ConfigHandler
~DDLSAX2ConfigHandler() override
Definition: DDLSAX2ConfigHandler.cc:18
DDLSAX2ConfigHandler::getFileNames
const std::vector< std::string > & getFileNames() const
Definition: DDLSAX2ConfigHandler.cc:56
DDLSAX2ConfigHandler::doValidation_
bool doValidation_
Definition: DDLSAX2ConfigHandler.h:39
DDLSAX2Handler::Attributes
XERCES_CPP_NAMESPACE::Attributes Attributes
Definition: DDLSAX2Handler.h:29
DDName.h
DDLSAX2ConfigHandler::getURLs
const std::vector< std::string > & getURLs() const
Definition: DDLSAX2ConfigHandler.cc:58
DDLSAX2ConfigHandler::DDLSAX2ConfigHandler
DDLSAX2ConfigHandler(DDCompactView &cpv)
Definition: DDLSAX2ConfigHandler.cc:15
DDLSAX2ConfigHandler::files_
std::vector< std::string > files_
Definition: DDLSAX2ConfigHandler.h:40