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

Method SetupPieceFileNameExtension

IO/ParallelXML/vtkXMLPTableWriter.cxx:167–178  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

165
166//------------------------------------------------------------------------------
167void vtkXMLPTableWriter::SetupPieceFileNameExtension()
168{
169 this->Superclass::SetupPieceFileNameExtension();
170
171 // Create a temporary piece writer and then initialize the extension.
172 vtkXMLWriter* writer = this->CreatePieceWriter(0);
173 const char* ext = writer->GetDefaultFileExtension();
174 this->PieceFileNameExtension = new char[strlen(ext) + 2];
175 this->PieceFileNameExtension[0] = '.';
176 strcpy(this->PieceFileNameExtension + 1, ext);
177 writer->Delete();
178}
179
180//------------------------------------------------------------------------------
181int vtkXMLPTableWriter::FillInputPortInformation(int, vtkInformation* info)

Callers

nothing calls this directly

Calls 3

CreatePieceWriterMethod · 0.95
DeleteMethod · 0.65

Tested by

no test coverage detected