MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / Close

Method Close

isis/src/base/objs/TextFile/TextFile.cpp:326–331  ·  view source on GitHub ↗

Closes file. Called automatically by TextFile destructor.

Source from the content-addressed store, hash-verified

324
325 //! Closes file. Called automatically by TextFile destructor.
326 void TextFile::Close() {
327 if(p_stream.is_open()) {
328 p_stream.flush();
329 p_stream.close();
330 }
331 }
332
333 // vector array
334 void TextFile::GetFile(std::vector<QString> &lines, const int &maxLinesToRead,

Callers 15

mainFunction · 0.45
ciss2isis.cppFile · 0.45
LinearizeMethod · 0.45
FindFlatFileMethod · 0.45
FindEfficiencyFactorMethod · 0.45
FindCorrectionFactorsMethod · 0.45
TEST_FFunction · 0.45
~GdalIoHandlerMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

flushMethod · 0.80
closeMethod · 0.45

Tested by 10

mainFunction · 0.36
TEST_FFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
TEST_FFunction · 0.36
createSizedTiffMethod · 0.36
createTiffMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36