PageRenderTime 24ms CodeModel.GetById 10ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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