CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PathContext.h
Go to the documentation of this file.
1 #ifndef FWCore_ServiceRegistry_PathContext_h
2 #define FWCore_ServiceRegistry_PathContext_h
3 
13 //
14 // Original Author: W. David Dagenhart
15 // Created: 7/10/2013
16 
17 #include <iosfwd>
18 #include <string>
19 
20 namespace edm {
21 
22  class StreamContext;
23 
24  class PathContext {
25  public:
26 
27  enum class PathType {
28  kPath,
29  kEndPath
30  };
31 
34  unsigned int pathID,
36 
37  std::string const& pathName() const { return pathName_; }
38  StreamContext const* streamContext() const { return streamContext_; }
39  unsigned int pathID() const { return pathID_; }
40  PathType pathType() const { return pathType_; }
41 
42  bool isEndPath() const { return pathType_ == PathType::kEndPath; }
43 
44  private:
47  unsigned int pathID_;
49  };
50 
51  std::ostream& operator<<(std::ostream&, PathContext const&);
52 }
53 #endif
std::string const & pathName() const
Definition: PathContext.h:37
StreamContext const * streamContext_
Definition: PathContext.h:46
PathContext(std::string const &pathName, StreamContext const *streamContext, unsigned int pathID, PathType pathType)
Definition: PathContext.cc:8
bool isEndPath() const
Definition: PathContext.h:42
std::string pathName_
Definition: PathContext.h:45
PathType pathType() const
Definition: PathContext.h:40
unsigned int pathID() const
Definition: PathContext.h:39
PathType pathType_
Definition: PathContext.h:48
StreamContext const * streamContext() const
Definition: PathContext.h:38
unsigned int pathID_
Definition: PathContext.h:47
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.