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

Method CheckForOptionalHeader

IO/EnSight/core/EnSightDataSet.cxx:2680–2692  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2678
2679//------------------------------------------------------------------------------
2680void EnSightDataSet::CheckForOptionalHeader(const std::string& sectionName)
2681{
2682 // some data has an optional string before it. e.g., for ghost flags,
2683 // there may be a string "ghost_flags" preceding it
2684 if (!sectionName.empty())
2685 {
2686 auto result = this->GeometryFile.ReadNextLine();
2687 if (result.second.find(sectionName) == std::string::npos)
2688 {
2689 this->GeometryFile.GoBackOneLine();
2690 }
2691 }
2692}
2693
2694//------------------------------------------------------------------------------
2695void EnSightDataSet::ReadCell(ElementType eType, vtkUnstructuredGrid* output,

Callers 2

ReadOptionalValuesMethod · 0.95

Calls 4

ReadNextLineMethod · 0.80
GoBackOneLineMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected