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

Method IsSectionHeader

IO/EnSight/core/EnSightDataSet.cxx:995–1003  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

993
994//------------------------------------------------------------------------------
995bool EnSightDataSet::IsSectionHeader(std::string line)
996{
997 std::unordered_set<std::string> headerSet = { "FORMAT", "GEOMETRY", "VARIABLE", "TIME", "FILE",
998 "MATERIAL", "BLOCK_CONTINUATION", "SCRIPTS" };
999 line.erase(std::remove_if(line.begin(), line.end(), isspace), line.end());
1000 line.erase(std::remove(line.begin(), line.end(), ':'), line.end());
1001 auto it = headerSet.find(line);
1002 return (it == headerSet.end() ? false : true);
1003}
1004
1005//------------------------------------------------------------------------------
1006bool EnSightDataSet::ReadGeometry(vtkPartitionedDataSetCollection* output,

Callers 5

ParseCaseFileMethod · 0.95
ParseGeometrySectionMethod · 0.95
ParseVariableSectionMethod · 0.95
ParseTimeSectionMethod · 0.95
ParseFileSectionMethod · 0.95

Calls 6

remove_ifFunction · 0.85
removeFunction · 0.50
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected