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

Method Open

IO/Core/vtkFileResourceStream.cxx:30–44  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

28
29//------------------------------------------------------------------------------
30bool vtkFileResourceStream::Open(VTK_FILEPATH const char* path)
31{
32 if (this->Impl->File.is_open())
33 {
34 this->Impl->File.close();
35 }
36
37 if (path)
38 {
39 this->Impl->File.open(path, std::ios_base::binary);
40 }
41
42 this->Modified();
43 return this->Impl->File.is_open();
44}
45
46//------------------------------------------------------------------------------
47std::size_t vtkFileResourceStream::Read(void* buffer, std::size_t bytes)

Callers 5

ReadTimeStepsMethod · 0.45
LoadFileMethod · 0.45
testGlobFileNamesMethod · 0.45
TestFileResourceFunction · 0.45
TestCityGMLReaderStreamFunction · 0.45

Calls 4

is_openMethod · 0.80
closeMethod · 0.45
openMethod · 0.45
ModifiedMethod · 0.45

Tested by 3

testGlobFileNamesMethod · 0.36
TestFileResourceFunction · 0.36
TestCityGMLReaderStreamFunction · 0.36