/DetectorDescription/Parser/interface/FIPConfiguration.h

https://github.com/aivanov-cern/cmssw · C Header · 72 lines · 30 code · 18 blank · 24 comment · 0 complexity · 81a740f4a0d5568cd79e394561ba3e6d MD5 · raw file

  1. #ifndef DetectorDescription_Parser_XMLConfiguration_H
  2. #define DetectorDescription_Parser_XMLConfiguration_H
  3. // ---------------------------------------------------------------------------
  4. // Includes
  5. // ---------------------------------------------------------------------------
  6. #include "DetectorDescription/Parser/interface/DDLDocumentProvider.h"
  7. #include "DetectorDescription/Parser/interface/DDLSAX2ConfigHandler.h"
  8. // From DD Core
  9. #include "DetectorDescription/Core/interface/DDCompactView.h"
  10. class DDLParser;
  11. class DDLSAX2Handler;
  12. class DDLSAX2ConfigHandler;
  13. #include <string>
  14. #include <vector>
  15. #include <map>
  16. /// FIPConfiguration reads in the configuration file for the DDParser.
  17. /** @class FIPConfiguration
  18. * @author Michael Case
  19. *
  20. * FIPConfiguration.h - description
  21. * -------------------
  22. * begin: Sun Nov 13, 2005
  23. * email: case@ucdhep.ucdavis.edu
  24. *
  25. */
  26. class FIPConfiguration : public DDLDocumentProvider {
  27. public:
  28. FIPConfiguration( DDCompactView& cpv);
  29. virtual ~FIPConfiguration();
  30. /// Read in the configuration file.
  31. int readConfig(const std::string& filename);
  32. /// Read in the configuration file.
  33. int readConfig(const std::string& filename, bool fullPath);
  34. /// Return a list of files as a std::vector of strings.
  35. virtual const std::vector < std::string >& getFileList(void) const;
  36. /// Return a list of urls as a std::vector of strings.
  37. /**
  38. This implementation does not provide a meaningful url list.
  39. **/
  40. virtual const std::vector < std::string >& getURLList(void) const;
  41. /// Print out the list of files.
  42. virtual void dumpFileList(void) const;
  43. /// Return whether Validation should be on or off and where the DDL SchemaLocation is.
  44. virtual bool doValidation() const;
  45. /// Return the designation for where to look for the schema.
  46. std::string getSchemaLocation() const;
  47. protected:
  48. private:
  49. DDLSAX2ConfigHandler configHandler_;
  50. std::vector<std::string> files_;
  51. std::vector<std::string> urls_;
  52. DDCompactView& cpv_;
  53. };
  54. #endif