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

Method rewind

IO/Geometry/vtkTecplotReader.cxx:136–147  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

134
135//------------------------------------------------------------------------------
136void FileStreamReader::rewind()
137{
138 if (this->Open)
139 {
140 // we don't want to use gzrewind as it rewinds to not the start of the
141 // file, but to start of the data in the file, meaning we are past any
142 // comments or headers.
143 std::string fn = this->FileName;
144 this->close();
145 this->open(fn.c_str());
146 }
147}
148
149//------------------------------------------------------------------------------
150void FileStreamReader::close()

Callers 1

GetDataArraysListMethod · 0.80

Calls 3

closeMethod · 0.95
openMethod · 0.95
c_strMethod · 0.45

Tested by

no test coverage detected