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

Method CheckForEndTimeStepLine

IO/EnSight/core/EnSightFile.cxx:351–367  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

349
350//------------------------------------------------------------------------------
351bool EnSightFile::CheckForEndTimeStepLine()
352{
353 // When file sets are used, multiple time steps are in a single file.
354 // each time step is between lines saying END TIME STEP and END TIME STEP
355 if (this->FileSet == -1)
356 {
357 return false;
358 }
359
360 auto result = this->ReadNextLine();
361 if (result.second.find("END TIME STEP") != std::string::npos)
362 {
363 return true;
364 }
365 this->GoBackOneLine();
366 return false;
367}
368
369//------------------------------------------------------------------------------
370void EnSightFile::ResetFile()

Callers 8

ReadGeometryMethod · 0.80
ReadMeasuredGeometryMethod · 0.80
GetPartInfoMethod · 0.80
ReadVariableNodesMethod · 0.80
ReadVariableElementsMethod · 0.80

Calls 3

ReadNextLineMethod · 0.95
GoBackOneLineMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected