CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
23 
24 // system include files
25 #include <string>
26 
27 // forward declarations
28 namespace edm {
29  namespace eventsetup {
31  std::string label_; // A human friendly string that uniquely identifies the label
32  std::string type_; // A human friendly string that uniquely identifies the name
33  bool isSource_;
34  bool isLooper_;
35 
36  // ID of parameter set of the creator
38 
39  /* ----------- end of provenance information ------------- */
40 
42 
43  ComponentDescription(std::string const& iType, std::string const& iLabel, bool iIsSource, bool iIsLooper = false)
44  : label_(iLabel), type_(iType), isSource_(iIsSource), isLooper_(iIsLooper), pid_() {}
45 
46  bool operator<(ComponentDescription const& iRHS) const {
47  return (type_ == iRHS.type_) ? (label_ < iRHS.label_) : (type_ < iRHS.type_);
48  }
49  bool operator==(ComponentDescription const& iRHS) const {
50  return label_ == iRHS.label_ && type_ == iRHS.type_ && isSource_ == iRHS.isSource_;
51  }
52  };
53  } // namespace eventsetup
54 } // namespace edm
55 #endif
bool operator==(ComponentDescription const &iRHS) const
ComponentDescription(std::string const &iType, std::string const &iLabel, bool iIsSource, bool iIsLooper=false)
bool operator<(ComponentDescription const &iRHS) const