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  virtual ~FIPConfiguration();
33 
35  int readConfig(const std::string& filename);
36 
38  int readConfig(const std::string& filename, bool fullPath);
39 
41  virtual const std::vector < std::string >& getFileList(void) const;
42 
44 
47  virtual const std::vector < std::string >& getURLList(void) const;
48 
50  virtual void dumpFileList(void) const;
51 
53  virtual bool doValidation() const;
54 
57 
58  private:
60  std::vector<std::string> files_;
61  std::vector<std::string> urls_;
63 };
64 
65 #endif
DDLSAX2ConfigHandler configHandler_
std::vector< std::string > urls_
virtual void dumpFileList(void) const
Print out the list of files.
FIPConfiguration(DDCompactView &cpv)
type of data representation of DDCompactView
Definition: DDCompactView.h:90
virtual const std::vector< std::string > & getFileList(void) const
Return a list of files as a std::vector of strings.
virtual ~FIPConfiguration()
DDCompactView & cpv_
virtual const std::vector< std::string > & getURLList(void) const
Return a list of urls as a std::vector of strings.
virtual bool doValidation() const
Return whether Validation should be on or off and where the DDL SchemaLocation is.
DDLParser is the main class of Detector Description Language Parser.
Definition: DDLParser.h:62
FIPConfiguration reads in the configuration file for the DDParser.
std::vector< std::string > files_
int readConfig(const std::string &filename)
Read in the configuration file.
DDLDocumentProvider provides a set of URLs and filenames.
DDLSAX2ConfigHandler is the handler for the configuration file.
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
std::string getSchemaLocation() const
Return the designation for where to look for the schema.