CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ComponentDescription.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ComponentDescription_h
2 #define FWCore_Framework_ComponentDescription_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : ComponentDescription
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Dec 15 14:07:57 EST 2005
19 //
20 
21 // user include files
25 
26 // system include files
27 #include <string>
28 
29 // forward declarations
30 namespace edm {
31  namespace eventsetup {
33  std::string label_; // A human friendly string that uniquely identifies the label
34  std::string type_; // A human friendly string that uniquely identifies the name
35  bool isSource_;
36  bool isLooper_;
37 
38  // The following set of parameters comes from
39  // DataFormats/Provenance/interface/ModuleDescription.h
40  // to match and have identical provenance information
41 
42  // ID of parameter set of the creator
44 
45  // the release tag of the executable
47 
48  // the physical process that this program was part of (e.g. production)
49  std::string processName_;
50 
51  // what the heck is this? I think its the version of the processName_
52  // e.g. second production pass
54  /* ----------- end of provenance information ------------- */
55 
57  label_(),
58  type_(),
61  pid_(),
63  processName_(),
64  passID_() {}
65 
66  ComponentDescription(std::string const& iType,
67  std::string const& iLabel,
68  bool iIsSource,
69  bool iIsLooper = false) :
70  label_(iLabel),
71  type_(iType),
72  isSource_(iIsSource),
73  isLooper_(iIsLooper),
74  pid_(),
76  processName_(),
77  passID_() {}
78 
79  bool operator<(ComponentDescription const& iRHS) const {
80  return (type_ == iRHS.type_) ? (label_ < iRHS.label_) : (type_<iRHS.type_);
81  }
82  bool operator==(ComponentDescription const& iRHS) const {
83  return label_ == iRHS.label_ &&
84  type_ == iRHS.type_ &&
85  isSource_ == iRHS.isSource_;
86  }
87  };
88  }
89 }
90 #endif
bool operator==(ComponentDescription const &iRHS) const
ComponentDescription(std::string const &iType, std::string const &iLabel, bool iIsSource, bool iIsLooper=false)
std::string ReleaseVersion
Definition: ReleaseVersion.h:7
bool operator<(ComponentDescription const &iRHS) const
std::string PassID
Definition: PassID.h:8