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

Method WriteDataModeAttribute

IO/XML/vtkXMLWriter.cxx:1676–1700  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1674
1675//------------------------------------------------------------------------------
1676int vtkXMLWriter::WriteDataModeAttribute(const char* name)
1677{
1678 ostream& os = *(this->Stream);
1679 os << " " << name << "=\"";
1680 if (this->DataMode == vtkXMLWriter::Appended)
1681 {
1682 os << "appended";
1683 }
1684 else if (this->DataMode == vtkXMLWriter::Binary)
1685 {
1686 os << "binary";
1687 }
1688 else
1689 {
1690 os << "ascii";
1691 }
1692 os << "\"";
1693
1694 os.flush();
1695 if (os.fail())
1696 {
1697 this->SetErrorCode(vtkErrorCode::GetLastSystemError());
1698 }
1699 return (os ? 1 : 0);
1700}
1701
1702//------------------------------------------------------------------------------
1703int vtkXMLWriter::WriteWordTypeAttribute(const char* name, int dataType)

Callers 1

WriteArrayHeaderMethod · 0.95

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected