MCPcopy Create free account
hub / github.com/Kitware/VTK / CloseFile

Method CloseFile

IO/EnSight/core/EnSightFile.cxx:482–494  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

480
481//------------------------------------------------------------------------------
482void EnSightFile::CloseFile()
483{
484 if (this->Stream)
485 {
486 if (this->Stream->is_open())
487 {
488 this->Stream->close();
489 }
490 delete this->Stream;
491 this->Stream = nullptr;
492 }
493 this->CurrentOpenFileName.clear();
494}
495
496//------------------------------------------------------------------------------
497std::pair<bool, std::string> EnSightFile::ReadNextLine(int size /* = MAX_LINE_LENGTH*/)

Callers 3

~EnSightFileMethod · 0.95
SetTimeStepToReadMethod · 0.95
OpenFileMethod · 0.95

Calls 3

is_openMethod · 0.80
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected