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
edm::PathContext::PathType::kPath
edm::PathContext::streamContext
StreamContext const * streamContext() const
Definition: PathContext.h:31
edm::PathContext::streamContext_
StreamContext const * streamContext_
Definition: PathContext.h:39
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::PathContext::pathType
PathType pathType() const
Definition: PathContext.h:33
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::PathContext::pathID
unsigned int pathID() const
Definition: PathContext.h:32
edm::StreamContext
Definition: StreamContext.h:31
edm::PathContext::PathType
PathType
Definition: PathContext.h:26
edm::PathContext::pathType_
PathType pathType_
Definition: PathContext.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::PathContext::isEndPath
bool isEndPath() const
Definition: PathContext.h:35
edm::PathContext
Definition: PathContext.h:24
edm::PathContext::pathName
std::string const & pathName() const
Definition: PathContext.h:30
edm::PathContext::pathName_
std::string pathName_
Definition: PathContext.h:38
edm::PathContext::PathContext
PathContext(std::string const &pathName, StreamContext const *streamContext, unsigned int pathID, PathType pathType)
Definition: PathContext.cc:8
edm::PathContext::pathID_
unsigned int pathID_
Definition: PathContext.h:40
edm::PathContext::PathType::kEndPath