------------------------------------------------------------------------------
| 56 | |
| 57 | //------------------------------------------------------------------------------ |
| 58 | void vtkAMRFlashReader::SetFileName(const char* fileName) |
| 59 | { |
| 60 | assert("pre: Internal Flash Reader is nullptr" && (this->Internal != nullptr)); |
| 61 | |
| 62 | if (fileName && strcmp(fileName, "") != 0 && |
| 63 | ((this->FileName == nullptr) || strcmp(fileName, this->FileName) != 0)) |
| 64 | { |
| 65 | if (this->FileName) |
| 66 | { |
| 67 | delete[] this->FileName; |
| 68 | this->FileName = nullptr; |
| 69 | this->Internal->SetFileName(nullptr); |
| 70 | } |
| 71 | |
| 72 | this->FileName = new char[strlen(fileName) + 1]; |
| 73 | strcpy(this->FileName, fileName); |
| 74 | this->FileName[strlen(fileName)] = '\0'; |
| 75 | |
| 76 | this->IsReady = true; |
| 77 | this->Internal->SetFileName(this->FileName); |
| 78 | this->LoadedMetaData = false; |
| 79 | |
| 80 | this->SetUpDataArraySelections(); |
| 81 | this->InitializeArraySelections(); |
| 82 | } |
| 83 | |
| 84 | this->Modified(); |
| 85 | } |
| 86 | |
| 87 | //------------------------------------------------------------------------------ |
| 88 | void vtkAMRFlashReader::ReadMetaData() |
nothing calls this directly
no test coverage detected