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

Method GetWriter

IO/ParallelXML/vtkXMLCompositeDataSetWriterHelper.cxx:70–95  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

68
69//----------------------------------------------------------------------------
70vtkXMLWriterBase* vtkXMLCompositeDataSetWriterHelper::GetWriter(int dataType)
71{
72 auto iter = this->WriterCache.find(dataType);
73 if (iter != this->WriterCache.end())
74 {
75 return iter->second;
76 }
77
78 if (auto writer = vtkXMLDataObjectWriter::NewWriter(dataType))
79 {
80 // Copy settings to the writer.
81 writer->SetDebug(this->Writer->GetDebug());
82 writer->SetByteOrder(this->Writer->GetByteOrder());
83 writer->SetCompressor(this->Writer->GetCompressor());
84 writer->SetBlockSize(this->Writer->GetBlockSize());
85 writer->SetDataMode(this->Writer->GetDataMode());
86 writer->SetEncodeAppendedData(this->Writer->GetEncodeAppendedData());
87 writer->SetHeaderType(this->Writer->GetHeaderType());
88 writer->SetIdType(this->Writer->GetIdType());
89 writer->SetWriteTimeValue(this->Writer->GetWriteTimeValue());
90 this->WriterCache[dataType].TakeReference(writer);
91 return writer;
92 }
93
94 return nullptr;
95}
96
97//----------------------------------------------------------------------------
98void vtkXMLCompositeDataSetWriterHelper::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

WriteDataSetMethod · 0.95

Calls 10

GetDebugMethod · 0.80
SetByteOrderMethod · 0.80
GetBlockSizeMethod · 0.80
SetHeaderTypeMethod · 0.80
SetIdTypeMethod · 0.80
findMethod · 0.45
endMethod · 0.45
SetDebugMethod · 0.45
SetBlockSizeMethod · 0.45
TakeReferenceMethod · 0.45

Tested by

no test coverage detected