gstreamer
Loading...
Searching...
No Matches
eventHeader.cc
Go to the documentation of this file.
1// gstreamer
4
5// using \n instead of endl so flushing isn't forced at each line
6// Non-Doxygen implementation file: behavior is documented in the header.
7bool GstreamerTextFactory::publishEventHeaderImpl([[maybe_unused]] const std::unique_ptr<GEventHeader>& gevent_header) {
8 if (!ofile.is_open()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
9
10 ofile << GTAB << "Header Bank {\n";
11 ofile << GTABTAB << " time: " << gevent_header->getTimeStamp() << "\n";
12 ofile << GTABTAB << " thread id: " << gevent_header->getThreadID() << "\n";
13 ofile << GTAB << "}\n";
14
15 return true;
16}
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).
#define GTAB
#define GTABTAB