1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "FWCore/ServiceRegistry/interface/InternalContext.h"
#include "FWCore/ServiceRegistry/interface/ModuleCallingContext.h"
#include <ostream>
namespace edm {
InternalContext::InternalContext(EventID const& eventID, ModuleCallingContext const* moduleCallingContext)
: eventID_(eventID), moduleCallingContext_(moduleCallingContext) {}
std::ostream& operator<<(std::ostream& os, InternalContext const& ic) {
os << "InternalContext " << ic.eventID() << "\n";
if (ic.moduleCallingContext()) {
os << " " << *ic.moduleCallingContext();
}
return os;
}
} // namespace edm
|