| 958 | //------------------------------------------------------------------------------ |
| 959 | template <class T> |
| 960 | void vtkXMLDataElementVectorAttributeSet( |
| 961 | vtkXMLDataElement* elem, const char* name, int length, const T* data) |
| 962 | { |
| 963 | if (!elem || !name || !length) |
| 964 | { |
| 965 | return; |
| 966 | } |
| 967 | std::stringstream vstr; |
| 968 | vstr.imbue(std::locale::classic()); |
| 969 | vstr << data[0]; |
| 970 | for (int i = 1; i < length; ++i) |
| 971 | { |
| 972 | vstr << ' ' << data[i]; |
| 973 | } |
| 974 | |
| 975 | elem->SetAttribute(name, vstr.str().c_str()); |
| 976 | } |
| 977 | |
| 978 | //------------------------------------------------------------------------------ |
| 979 | void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, const int* data) |
no test coverage detected