MCPcopy Create free account
hub / github.com/MITK/MITK / ~LocalFile

Method ~LocalFile

Modules/Core/src/IO/mitkAbstractFileWriter.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 AbstractFileWriter::LocalFile::~LocalFile()
47 {
48 if (d->m_Stream && !d->m_TmpFileName.empty())
49 {
50 std::ifstream ifs(d->m_TmpFileName.c_str(), std::ios_base::binary);
51 *d->m_Stream << ifs.rdbuf();
52 d->m_Stream->flush();
53 ifs.close();
54 std::remove(d->m_TmpFileName.c_str());
55 }
56 }
57
58 std::string AbstractFileWriter::LocalFile::GetFileName()
59 {

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
closeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected