CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ModuleDescription.cc
Go to the documentation of this file.
2 
3 #include <ostream>
4 #include <sstream>
5 
6 /*----------------------------------------------------------------------
7 
8 ----------------------------------------------------------------------*/
9 
10 namespace edm {
11 
13  parameterSetID_(),
14  moduleName_(),
15  moduleLabel_(),
16  processConfigurationPtr_(new ProcessConfiguration()) {}
17 
19  ParameterSetID const& pid,
20  std::string const& modName,
21  std::string const& modLabel) :
22  parameterSetID_(pid),
23  moduleName_(modName),
24  moduleLabel_(modLabel),
25  processConfigurationPtr_(new ProcessConfiguration()) {}
26 
28  ParameterSetID const& pid,
29  std::string const& modName,
30  std::string const& modLabel,
31  boost::shared_ptr<ProcessConfiguration const> procConfig) :
32  parameterSetID_(pid),
33  moduleName_(modName),
34  moduleLabel_(modLabel),
35  processConfigurationPtr_(procConfig) {}
36 
38  std::string const& modName,
39  std::string const& modLabel) :
40  parameterSetID_(),
41  moduleName_(modName),
42  moduleLabel_(modLabel),
43  processConfigurationPtr_(new ProcessConfiguration()) {}
44 
46  std::string const& modName,
47  std::string const& modLabel,
48  boost::shared_ptr<ProcessConfiguration const> procConfig) :
49  parameterSetID_(),
50  moduleName_(modName),
51  moduleLabel_(modLabel),
52  processConfigurationPtr_(procConfig) {}
53 
55 
59  }
60 
63  return processConfiguration().id();
64  }
65 
66  std::string const&
69  }
70 
71  std::string const&
74  }
75 
76  std::string const&
78  return processConfiguration().passID();
79  }
80 
81  ParameterSetID const&
84  }
85 
86  bool
88  if (moduleLabel() < rh.moduleLabel()) return true;
89  if (rh.moduleLabel() < moduleLabel()) return false;
90  if (processName() < rh.processName()) return true;
91  if (rh.processName() < processName()) return false;
92  if (moduleName() < rh.moduleName()) return true;
93  if (rh.moduleName() < moduleName()) return false;
94  if (parameterSetID() < rh.parameterSetID()) return true;
95  if (rh.parameterSetID() < parameterSetID()) return false;
96  if (releaseVersion() < rh.releaseVersion()) return true;
97  if (rh.releaseVersion() < releaseVersion()) return false;
98  if (passID() < rh.passID()) return true;
99  return false;
100  }
101 
102  bool
104  return !((*this) < rh || rh < (*this));
105  }
106 
107  bool
109  return !((*this) == rh);
110  }
111 
112  void
113  ModuleDescription::write(std::ostream& os) const {
114  os << "Module type=" << moduleName() << ", "
115  << "Module label=" << moduleLabel() << ", "
116  << "Parameter Set ID=" << parameterSetID();
117  //<< "Parameter Set ID=" << parameterSetID() << ", "
118  //<< "Process name=" << processName() << ", "
119  //<< "Release Version=" << releaseVersion() << ", "
120  //<< "Pass ID=" << passID() << ", "
121  //<< "Main Parameter Set ID=" << mainParameterSetID();
122  }
123 }
ParameterSetID const & mainParameterSetID() const
std::string const & processName() const
ProcessConfigurationID id() const
std::string const & moduleName() const
std::string const & passID() const
std::string const & moduleLabel() const
PassID const & passID() const
std::string const & processName() const
ParameterSetID const & parameterSetID() const
std::string const & releaseVersion() const
bool operator!=(ModuleDescription const &rh) const
bool operator==(ModuleDescription const &rh) const
ProcessConfigurationID processConfigurationID() const
ReleaseVersion const & releaseVersion() const
boost::shared_ptr< ProcessConfiguration const > processConfigurationPtr_
ParameterSetID const & parameterSetID() const
void write(std::ostream &os) const
ProcessConfiguration const & processConfiguration() const
bool operator<(ModuleDescription const &rh) const