------------------------------------------------------------------------------
| 1701 | |
| 1702 | //------------------------------------------------------------------------------ |
| 1703 | int 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 | //------------------------------------------------------------------------------ |
| 1721 | int vtkXMLWriter::WriteStringAttribute(const char* name, const char* value) |
no test coverage detected