CMS 3D CMS Logo

FIPConfiguration.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_PARSER_FIP_CONFIGURATION_H
2 #define DETECTOR_DESCRIPTION_PARSER_FIP_CONFIGURATION_H
3 
4 #include <map>
5 #include <string>
6 #include <vector>
7 
11 
12 class DDCompactView;
13 class DDLParser;
15 class DDLSAX2Handler;
16 
18 
28 {
29  public:
30 
32  ~FIPConfiguration() override;
33 
35  int readConfig(const std::string& filename) override;
36 
38  int readConfig(const std::string& filename, bool fullPath);
39 
41  const std::vector < std::string >& getFileList(void) const override;
42 
44 
47  const std::vector < std::string >& getURLList(void) const override;
48 
50  void dumpFileList(void) const override;
51 
53  bool doValidation() const override;
54 
56  std::string getSchemaLocation() const override;
57 
58  private:
60  std::vector<std::string> files_;
61  std::vector<std::string> urls_;
63 };
64 
65 #endif
DDLSAX2ConfigHandler configHandler_
const std::vector< std::string > & getFileList(void) const override
Return a list of files as a std::vector of strings.
std::vector< std::string > urls_
int readConfig(const std::string &filename) override
Read in the configuration file.
FIPConfiguration(DDCompactView &cpv)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
std::string getSchemaLocation() const override
Return the designation for where to look for the schema.
bool doValidation() const override
Return whether Validation should be on or off and where the DDL SchemaLocation is.
void dumpFileList(void) const override
Print out the list of files.
DDCompactView & cpv_
DDLParser is the main class of Detector Description Language Parser.
Definition: DDLParser.h:63
FIPConfiguration reads in the configuration file for the DDParser.
std::vector< std::string > files_
~FIPConfiguration() override
DDLDocumentProvider provides a set of URLs and filenames.
DDLSAX2ConfigHandler is the handler for the configuration file.
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
const std::vector< std::string > & getURLList(void) const override
Return a list of urls as a std::vector of strings.