------------------------------------------------------------------------------
| 993 | |
| 994 | //------------------------------------------------------------------------------ |
| 995 | bool 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 | //------------------------------------------------------------------------------ |
| 1006 | bool EnSightDataSet::ReadGeometry(vtkPartitionedDataSetCollection* output, |
no test coverage detected