| 1578 | //------------------------------------------------------------------------------ |
| 1579 | template <class T> |
| 1580 | int vtkXMLWriterWriteVectorAttribute(ostream& os, const char* name, int length, T* data) |
| 1581 | { |
| 1582 | os << " " << name << "=\""; |
| 1583 | if (length) |
| 1584 | { |
| 1585 | os << vtk::to_string(data[0]); |
| 1586 | for (int i = 1; i < length; ++i) |
| 1587 | { |
| 1588 | os << " " << vtk::to_string(data[i]); |
| 1589 | } |
| 1590 | } |
| 1591 | os << "\""; |
| 1592 | return os ? 1 : 0; |
| 1593 | } |
| 1594 | |
| 1595 | //------------------------------------------------------------------------------ |
| 1596 | int vtkXMLWriter::WriteScalarAttribute(const char* name, int data) |
no test coverage detected