CMS 3D CMS Logo

DDLSAX2ConfigHandler.h

Go to the documentation of this file.
00001 #ifndef DDL_SAX2ConfigHandler_H
00002 #define DDL_SAX2ConfigHandler_H
00003 
00004 // ---------------------------------------------------------------------------
00005 //  Includes
00006 // ---------------------------------------------------------------------------
00007 #include "DetectorDescription/Parser/interface/DDLSAX2Handler.h"
00008 
00009 #include <vector>
00010 #include <string>
00011 
00012 // Xerces C++ dependencies
00013 #include <xercesc/sax2/Attributes.hpp>
00014 
00016 
00026 class DDLSAX2ConfigHandler : public DDLSAX2Handler
00027 {
00028 
00029  public:
00030 
00031   // -----------------------------------------------------------------------
00032   //  Constructor and Destructor
00033   // -----------------------------------------------------------------------
00034   DDLSAX2ConfigHandler();
00035   ~DDLSAX2ConfigHandler();
00036 
00037   // -----------------------------------------------------------------------
00038   //  Handlers for the SAX ContentHandler interface
00039   // -----------------------------------------------------------------------
00040   void startElement(const XMLCh* const uri, const XMLCh* const localname
00041                     , const XMLCh* const qname, const Attributes& attrs);
00042 
00043   const std::vector<std::string>& getFileNames() const;
00044   const std::vector<std::string>& getURLs() const;
00045   const std::string getSchemaLocation() const;
00046   const bool doValidation() const;
00047 
00048  private:
00049   bool doValidation_;
00050   std::vector<std::string> files_;
00051   std::vector<std::string> urls_;
00052   std::string schemaLocation_;
00053 
00054 };
00055 
00056 #endif

Generated on Tue Jun 9 17:32:23 2009 for CMSSW by  doxygen 1.5.4