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

Method OpenSubfile

IO/HDF/vtkHDFWriterImplementation.cxx:182–197  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

180
181//------------------------------------------------------------------------------
182bool vtkHDFWriter::Implementation::OpenSubfile(const std::string& filename)
183{
184 vtkDebugWithObjectMacro(
185 this->Writer, << "Opening sub file on rank " << this->Writer->CurrentPiece << ": " << filename);
186
187 vtkHDF::ScopedH5FHandle file{ H5Fopen(filename.c_str(), H5F_ACC_RDONLY, H5P_DEFAULT) };
188 if (file == H5I_INVALID_HID)
189 {
190 return false;
191 }
192
193 this->Subfiles.emplace_back(std::move(file));
194 this->SubfileNames.emplace_back(filename);
195
196 return true;
197}
198
199//------------------------------------------------------------------------------
200vtkHDF::ScopedH5GHandle vtkHDFWriter::Implementation::OpenExistingGroup(

Callers 3

WriteDataMethod · 0.80
WriteDatasetToFileMethod · 0.80

Calls 3

H5FopenFunction · 0.85
c_strMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected