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

Method SetupPieceFileNameExtension

IO/ParallelXML/vtkXMLPDataWriter.cxx:137–148  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

135
136//------------------------------------------------------------------------------
137void vtkXMLPDataWriter::SetupPieceFileNameExtension()
138{
139 this->Superclass::SetupPieceFileNameExtension();
140
141 // Create a temporary piece writer and then initialize the extension.
142 vtkXMLWriter* writer = this->CreatePieceWriter(0);
143 const char* ext = writer->GetDefaultFileExtension();
144 this->PieceFileNameExtension = new char[strlen(ext) + 2];
145 this->PieceFileNameExtension[0] = '.';
146 strcpy(this->PieceFileNameExtension + 1, ext);
147 writer->Delete();
148}
149VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

DeleteMethod · 0.65
CreatePieceWriterMethod · 0.45

Tested by

no test coverage detected