8bool GstreamerTextFactory::openConnection() {
17 ofile.open(filename(), std::ios::out | std::ios::trunc);
19 if (!ofile.is_open() || !ofile) {
23 log->
info(1, SFUNCTION_NAME,
"GstreamerTextFactory: opened file " + filename());
28bool GstreamerTextFactory::closeConnectionImpl() {
31 if (ofile.is_open()) ofile.close();
34 log->
info(1, SFUNCTION_NAME,
"GstreamerTextFactory: closed file " + filename());
std::shared_ptr< GLogger > log
void info(int level, Args &&... args) const
void error(int exit_code, Args &&... args) const
ASCII streamer plugin declarations.
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 successfully.