8bool GstreamerTextFactory::openConnection() {
18 ofile.open(filename(), std::ios::out | std::ios::trunc);
20 if (!ofile.is_open() || !ofile) {
24 log->
info(0,
"GstreamerTextFactory: opened file " + filename());
28bool GstreamerTextFactory::closeConnectionImpl() {
32 if (ofile.is_open()) ofile.close();
std::shared_ptr< GLogger > log
void info(int level, Args &&... args) const
void error(int exit_code, Args &&... args) const
void flushEventBuffer()
Flush the internal event buffer, writing all buffered events to the output medium.
Shared constants and error codes for the gstreamer module.
#define ERR_CANTCLOSEOUTPUT
Output medium could not be closed cleanly.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).