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

◆ close()

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

Save and release the document, or return false after failure.

Implements MayaFlux::IO::CompositeWriter.

Definition at line 339 of file XmlWriter.cpp.

340{
341 if (!m_open)
342 return true;
343
344 const bool saved = !m_failed && flush();
345 m_xml.reset();
346 m_content_started.clear();
347 m_ancestors.clear();
348 m_filepath.clear();
349 m_open = false;
350
351 return saved;
352}
std::vector< bool > m_content_started
Definition XmlWriter.hpp:68
std::unique_ptr< Impl > m_xml
Definition XmlWriter.hpp:67
std::vector< uint64_t > m_ancestors
Definition XmlWriter.hpp:69
bool flush() override
Save the current document, which must contain one root.

References flush(), m_ancestors, m_content_started, m_failed, m_filepath, m_open, and m_xml.

Referenced by XmlWriter(), and ~XmlWriter().

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