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

Method OpenDataFile

IO/Geometry/vtkFLUENTReader.cxx:895–907  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

893
894//------------------------------------------------------------------------------
895bool vtkFLUENTReader::OpenDataFile(const char* filename)
896{
897 std::string dfilename(filename);
898 dfilename.erase(dfilename.length() - 3, 3);
899 dfilename.append("dat");
900
901 std::ios_base::openmode mode = ios::in;
902#ifdef _WIN32
903 mode |= ios::binary;
904#endif
905 this->FluentDataFile = new vtksys::ifstream(dfilename.c_str(), mode);
906 return !this->FluentDataFile->fail();
907}
908
909//------------------------------------------------------------------------------
910int vtkFLUENTReader::GetCaseChunk()

Callers 1

RequestInformationMethod · 0.95

Calls 4

eraseMethod · 0.45
lengthMethod · 0.45
appendMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected