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

◆ close()

void MayaFlux::IO::TextFileWriter::close ( )
overridevirtual

Close the currently open file.

Implements MayaFlux::IO::FileWriter.

Definition at line 78 of file TextFileWriter.cpp.

79{
80 std::lock_guard lock(m_mutex);
81
82 if (m_file.is_open()) {
83 m_file.flush();
84 m_file.close();
85 }
86
87 m_is_open = false;
88}

References m_file, m_is_open, and m_mutex.

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

+ Here is the caller graph for this function: