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 public:
30  ~FIPConfiguration() override;
31 
33  int readConfig(const std::string& filename) override;
34 
36  int readConfig(const std::string& filename, bool fullPath);
37 
39  const std::vector<std::string>& getFileList(void) const override;
40 
42 
45  const std::vector<std::string>& getURLList(void) const override;
46 
48  void dumpFileList(void) const override;
49 
51  bool doValidation() const override;
52 
54  std::string getSchemaLocation() const override;
55 
56 private:
58  std::vector<std::string> files_;
59  std::vector<std::string> urls_;
61 };
62 
63 #endif
DDLSAX2ConfigHandler configHandler_
std::vector< std::string > urls_
const std::vector< std::string > & getURLList(void) const override
Return a list of urls as a std::vector of strings.
const std::vector< std::string > & getFileList(void) const override
Return a list of files as a std::vector of strings.
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:81
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_
std::string getSchemaLocation() const override
Return the designation for where to look for the schema.
~FIPConfiguration() override
DDLDocumentProvider provides a set of URLs and filenames.
DDLSAX2ConfigHandler is the handler for the configuration file.
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
bool doValidation() const override
Return whether Validation should be on or off and where the DDL SchemaLocation is.