------------------------------------------------------------------------------
| 480 | |
| 481 | //------------------------------------------------------------------------------ |
| 482 | void 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 | //------------------------------------------------------------------------------ |
| 497 | std::pair<bool, std::string> EnSightFile::ReadNextLine(int size /* = MAX_LINE_LENGTH*/) |
no test coverage detected