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

Method WriteWordTypeAttribute

IO/XML/vtkXMLWriter.cxx:1703–1718  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1701
1702//------------------------------------------------------------------------------
1703int vtkXMLWriter::WriteWordTypeAttribute(const char* name, int dataType)
1704{
1705 ostream& os = *(this->Stream);
1706 const char* value = this->GetWordTypeName(dataType);
1707 if (!value)
1708 {
1709 return 0;
1710 }
1711 os << " " << name << "=\"" << value << "\"";
1712 os.flush();
1713 if (os.fail())
1714 {
1715 this->SetErrorCode(vtkErrorCode::GetLastSystemError());
1716 }
1717 return os ? 1 : 0;
1718}
1719
1720//------------------------------------------------------------------------------
1721int vtkXMLWriter::WriteStringAttribute(const char* name, const char* value)

Callers 2

WriteArrayHeaderMethod · 0.95
WritePArrayMethod · 0.95

Calls 2

GetWordTypeNameMethod · 0.95
flushMethod · 0.45

Tested by

no test coverage detected