1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "FWCore/ServiceRegistry/interface/PathContext.h"
#include "FWCore/ServiceRegistry/interface/StreamContext.h"
#include <ostream>
namespace edm {
PathContext::PathContext(std::string const& pathName,
StreamContext const* streamContext,
unsigned int pathID,
PathType pathType)
: pathName_(pathName), streamContext_(streamContext), pathID_(pathID), pathType_(pathType) {}
std::ostream& operator<<(std::ostream& os, PathContext const& pc) {
os << "PathContext: pathName = " << pc.pathName() << " pathID = " << pc.pathID();
if (pc.pathType() == PathContext::PathType::kEndPath) {
os << " (EndPath)\n";
} else {
os << "\n";
}
if (pc.streamContext()) {
os << " " << *pc.streamContext();
}
return os;
}
} // namespace edm
|