------------------------------------------------------------------------------
| 148 | |
| 149 | //------------------------------------------------------------------------------ |
| 150 | bool 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 | //------------------------------------------------------------------------------ |
| 169 | void vtkHDFWriter::Implementation::CloseFile() |
nothing calls this directly
no test coverage detected