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()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
11
12 ofile << GTAB << "Header Bank {\n";
13 ofile << GTABTAB << " time: " << gevent_header->getTimeStamp() << "\n";
14 ofile << GTABTAB << " thread id: " << gevent_header->getThreadID() << "\n";
15 ofile << GTAB << "}\n";
16
17 return true;
18}
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
#define GTAB
#define GTABTAB