------------------------------------------------------------------------------
| 822 | |
| 823 | //------------------------------------------------------------------------------ |
| 824 | void vtkMINCImageAttributes::SetAttributeValueAsString( |
| 825 | const char* variable, const char* attribute, const char* value) |
| 826 | { |
| 827 | size_t length = strlen(value); |
| 828 | |
| 829 | vtkCharArray* array = vtkCharArray::New(); |
| 830 | // Allocate an extra byte to store a null terminator. |
| 831 | array->Resize(static_cast<vtkIdType>(length + 1)); |
| 832 | char* dest = array->WritePointer(0, static_cast<vtkIdType>(length)); |
| 833 | strcpy(dest, value); |
| 834 | this->SetAttributeValueAsArray(variable, attribute, array); |
| 835 | |
| 836 | array->Delete(); |
| 837 | } |
| 838 | |
| 839 | //------------------------------------------------------------------------------ |
| 840 | void vtkMINCImageAttributes::SetAttributeValueAsInt( |
no test coverage detected