CMS 3D CMS Logo

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  enum class PathType { kPath, kEndPath };
27 
29 
30  std::string const& pathName() const { return pathName_; }
31  StreamContext const* streamContext() const { return streamContext_; }
32  unsigned int pathID() const { return pathID_; }
33  PathType pathType() const { return pathType_; }
34 
35  bool isEndPath() const { return pathType_ == PathType::kEndPath; }
36 
37  private:
40  unsigned int pathID_;
42  };
43 
44  std::ostream& operator<<(std::ostream&, PathContext const&);
45 } // namespace edm
46 #endif
PathType pathType() const
Definition: PathContext.h:33
StreamContext const * streamContext_
Definition: PathContext.h:39
PathContext(std::string const &pathName, StreamContext const *streamContext, unsigned int pathID, PathType pathType)
Definition: PathContext.cc:8
StreamContext const * streamContext() const
Definition: PathContext.h:31
std::string pathName_
Definition: PathContext.h:38
PathType pathType_
Definition: PathContext.h:41
unsigned int pathID() const
Definition: PathContext.h:32
HLT enums.
std::string const & pathName() const
Definition: PathContext.h:30
bool isEndPath() const
Definition: PathContext.h:35
unsigned int pathID_
Definition: PathContext.h:40
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger table.