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

Method WriteStringAttribute

IO/XML/vtkXMLWriter.cxx:1721–1732  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1719
1720//------------------------------------------------------------------------------
1721int vtkXMLWriter::WriteStringAttribute(const char* name, const char* value)
1722{
1723 ostream& os = *(this->Stream);
1724 os << " " << name << "=\"" << value << "\"";
1725
1726 os.flush();
1727 if (os.fail())
1728 {
1729 this->SetErrorCode(vtkErrorCode::GetLastSystemError());
1730 }
1731 return os ? 1 : 0;
1732}
1733
1734//------------------------------------------------------------------------------
1735// Methods used for serializing vtkInformation. ------------------------------

Callers 6

WriteFileAttributesMethod · 0.95
WriteArrayHeaderMethod · 0.95
WriteAttributeIndicesMethod · 0.95
WritePArrayMethod · 0.95
WritePPieceAttributesMethod · 0.80

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected