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

Method SetFileName

IO/AMR/vtkAMRFlashReader.cxx:58–85  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

56
57//------------------------------------------------------------------------------
58void 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//------------------------------------------------------------------------------
88void vtkAMRFlashReader::ReadMetaData()

Callers

nothing calls this directly

Calls 4

assertFunction · 0.50
ModifiedMethod · 0.45

Tested by

no test coverage detected