gstreamer
Loading...
Searching...
No Matches
publishPayload.cc
Go to the documentation of this file.
1// gstreamer
4
5// Non-Doxygen implementation file: behavior is documented in the header.
6bool GstreamerTextFactory::publishPayloadImpl(const std::vector<GIntegralPayload*>* payload) {
7 if (!ofile.is_open()) { log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename()); }
8
9 ofile << GTAB << "Payload {\n";
10
11 for (auto pload : *payload) {
12 for (auto pvar : pload->getPayload()) { ofile << GTABTAB << pvar; }
13 ofile << "\n";
14 }
15 ofile << GTAB << "}\n";
16
17 return true;
18}
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