gstreamer
Loading...
Searching...
No Matches
eventHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Serialize the event header bank for the ASCII backend.
7// Use '\n' instead of std::endl so each line does not force a flush.
8
9bool GstreamerTextFactory::publishEventHeaderImpl([[maybe_unused]] const std::unique_ptr<GEventHeader>& gevent_header) {
10 if (!ofile.is_open()) {
11 log->error(gstreamer::ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename());
12 }
13
14 ofile << guts::GTAB << "Header Bank {\n";
15 ofile << guts::GTABTAB << " time: " << gevent_header->getTimeStamp() << "\n";
16 ofile << guts::GTABTAB << " thread id: " << gevent_header->getThreadID() << "\n";
17 ofile << guts::GTAB << "}\n";
18
19 return true;
20}
std::shared_ptr< GLogger > log
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
constexpr char GTABTAB[]
constexpr char GTAB[]