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

◆ close()

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

Finalize and close the current file.

Implements MayaFlux::IO::CompositeWriter.

Definition at line 299 of file DelimitedTextWriter.cpp.

300{
301 if (!is_open())
302 return true;
303
304 m_file.flush();
305 m_file.close();
306
307 const bool finished = !m_file.fail();
308 if (!finished && m_last_error.empty())
309 m_last_error = "Failed to finalize delimited text output";
310
311 m_layout.reset();
312 return finished;
313}
bool is_open() const override
Whether an output file is open.
std::optional< Kakshya::CompositeLayout > m_layout

References is_open(), m_file, m_last_error, and m_layout.

Referenced by open(), and ~DelimitedTextWriter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: