MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ flush()

bool MayaFlux::IO::DelimitedTextWriter::flush ( )
overridevirtual

Flush the current file without closing it.

Implements MayaFlux::IO::CompositeWriter.

Definition at line 282 of file DelimitedTextWriter.cpp.

283{
284 if (!is_open()) {
285 m_last_error = "No delimited text output is open";
286 return false;
287 }
288
289 m_file.flush();
290
291 if (!m_file) {
292 m_last_error = "Failed to flush delimited text output";
293 return false;
294 }
295
296 return true;
297}
bool is_open() const override
Whether an output file is open.

References is_open(), m_file, and m_last_error.

+ Here is the call graph for this function: