CMS 3D CMS Logo

DDLSAX2ConfigHandler.h
Go to the documentation of this file.
1 #ifndef DDL_SAX2ConfigHandler_H
2 #define DDL_SAX2ConfigHandler_H
3 
4 // ---------------------------------------------------------------------------
5 // Includes
6 // ---------------------------------------------------------------------------
8 
9 // DDCore parts
12 
13 #include <vector>
14 #include <string>
15 
16 // Xerces C++ dependencies
17 #include <xercesc/sax2/Attributes.hpp>
18 
20 
31 {
32 
33  public:
34 
35  // -----------------------------------------------------------------------
36  // Constructor and Destructor
37  // -----------------------------------------------------------------------
40 
41  // -----------------------------------------------------------------------
42  // Handlers for the SAX ContentHandler interface
43  // -----------------------------------------------------------------------
44  void startElement(const XMLCh* const uri, const XMLCh* const localname
45  , const XMLCh* const qname, const Attributes& attrs);
46 
47  const std::vector<std::string>& getFileNames() const;
48  const std::vector<std::string>& getURLs() const;
49  const std::string getSchemaLocation() const;
50  const bool doValidation() const;
51 
52  private:
54  std::vector<std::string> files_;
55  std::vector<std::string> urls_;
58 
59 };
60 
61 #endif
const std::string getSchemaLocation() const
std::vector< std::string > files_
type of data representation of DDCompactView
Definition: DDCompactView.h:90
std::vector< std::string > urls_
const std::vector< std::string > & getURLs() const
DDLSAX2ConfigHandler(DDCompactView &cpv)
DDLSAX2ConfigHandler is the handler for the configuration file.
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
const std::vector< std::string > & getFileNames() const
const bool doValidation() const
XERCES_CPP_NAMESPACE::Attributes Attributes