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

Method OpenFile

IO/HDF/vtkHDFWriterImplementation.cxx:150–166  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

148
149//------------------------------------------------------------------------------
150bool vtkHDFWriter::Implementation::OpenFile()
151{
152 const char* filename = this->Writer->GetFileName();
153 vtkDebugWithObjectMacro(
154 this->Writer, << "Opening file on rank" << this->Writer->CurrentPiece << ": " << filename);
155
156 vtkHDF::ScopedH5FHandle file{ H5Fopen(filename, H5F_ACC_RDWR, H5P_DEFAULT) };
157 if (file == H5I_INVALID_HID)
158 {
159 return false;
160 }
161
162 this->File = std::move(file);
163 this->Root = this->OpenExistingGroup(this->File, "VTKHDF");
164
165 return this->Root != H5I_INVALID_HID;
166}
167
168//------------------------------------------------------------------------------
169void vtkHDFWriter::Implementation::CloseFile()

Callers

nothing calls this directly

Calls 3

OpenExistingGroupMethod · 0.95
H5FopenFunction · 0.85
GetFileNameMethod · 0.45

Tested by

no test coverage detected