CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  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
std::string const & pathName() const
Definition: PathContext.h:30
StreamContext const * streamContext_
Definition: PathContext.h:39
PathContext(std::string const &pathName, StreamContext const *streamContext, unsigned int pathID, PathType pathType)
Definition: PathContext.cc:8
bool isEndPath() const
Definition: PathContext.h:35
std::string pathName_
Definition: PathContext.h:38
PathType pathType() const
Definition: PathContext.h:33
unsigned int pathID() const
Definition: PathContext.h:32
PathType pathType_
Definition: PathContext.h:41
StreamContext const * streamContext() const
Definition: PathContext.h:31
unsigned int pathID_
Definition: PathContext.h:40
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.