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 Framework_ComponentDescription_h
2 #define 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 // $Id: ComponentDescription.h,v 1.5 2007/02/10 19:14:12 chrjones Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
29 
30 // forward declarations
31 namespace edm {
32  namespace eventsetup {
34  std::string label_; // A human friendly string that uniquely identifies the label
35  std::string type_; // A human friendly string that uniquely identifies the name
36  bool isSource_;
37  bool isLooper_;
38 
39  // The following set of parameters comes from
40  // DataFormats/Provenance/interface/ModuleDescription.h
41  // to match and have identical provenance information
42 
43  // ID of parameter set of the creator
45 
46  // the release tag of the executable
48 
49  // the physical process that this program was part of (e.g. production)
50  std::string processName_;
51 
52  // what the heck is this? I think its the version of the processName_
53  // e.g. second production pass
55  /* ----------- end of provenance information ------------- */
56 
57 
59  label_(),
60  type_(),
63  pid_(),
65  processName_(),
66  passID_() {}
67 
68  ComponentDescription(const std::string& iType,
69  const std::string& iLabel,
70  bool iIsSource,
71  bool iIsLooper=false) :
72  label_(iLabel),
73  type_(iType),
74  isSource_(iIsSource),
75  isLooper_(iIsLooper),
76  pid_(),
77  releaseVersion_(),
78  processName_(),
79  passID_() {}
80 
81  bool operator<( const ComponentDescription& iRHS) const {
82  return (type_ == iRHS.type_) ? (label_ < iRHS.label_) : (type_<iRHS.type_);
83  }
84  bool operator==(const ComponentDescription& iRHS) const {
85  return label_ == iRHS.label_ &&
86  type_ == iRHS.type_ &&
87  isSource_ == iRHS.isSource_;
88  }
89  };
90 
91  }
92 }
93 
94 
95 
96 #endif
ComponentDescription(const std::string &iType, const std::string &iLabel, bool iIsSource, bool iIsLooper=false)
bool operator<(const ComponentDescription &iRHS) const
bool operator==(const ComponentDescription &iRHS) const
std::string ReleaseVersion
Definition: ReleaseVersion.h:7
std::string PassID
Definition: PassID.h:8