CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FIPConfiguration.h
Go to the documentation of this file.
1 #ifndef DetectorDescription_Parser_XMLConfiguration_H
2 #define DetectorDescription_Parser_XMLConfiguration_H
3 
4 // ---------------------------------------------------------------------------
5 // Includes
6 // ---------------------------------------------------------------------------
9 
10 // From DD Core
12 
13 class DDLParser;
14 class DDLSAX2Handler;
16 
17 #include <string>
18 #include <vector>
19 #include <map>
20 
22 
32 
33 
34  public:
35 
37  virtual ~FIPConfiguration();
38 
40  int readConfig(const std::string& filename);
41 
43  int readConfig(const std::string& filename, bool fullPath);
44 
46  virtual const std::vector < std::string >& getFileList(void) const;
47 
49 
52  virtual const std::vector < std::string >& getURLList(void) const;
53 
55  virtual void dumpFileList(void) const;
56 
58  virtual bool doValidation() const;
59 
62 
63  protected:
64 
65  private:
67  std::vector<std::string> files_;
68  std::vector<std::string> urls_;
70 };
71 
72 #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:77
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:64
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.
tuple filename
Definition: lut2db_cfg.py:20
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.