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

Function vtkXMLWriterWriteVectorAttribute

IO/XML/vtkXMLWriter.cxx:1580–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578//------------------------------------------------------------------------------
1579template <class T>
1580int 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//------------------------------------------------------------------------------
1596int vtkXMLWriter::WriteScalarAttribute(const char* name, int data)

Callers 1

WriteVectorAttributeMethod · 0.85

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected