ENH: Add Set/Get and XML macros for iterable STL container properties
Adds macros to Read/Write/Print/Copy iterable properties.
Example usage:
-
Numeric container:
vtkMRMLWriteXMLStdVectorMacro(property, Property, std::deque<int>);
-
String container:
vtkMRMLWriteXMLStdStringVectorMacro(property, Property, std::vector);
See also this related merge request in VTK: vtk/vtk!4427 (closed) It's not required for this change, but it adds some convenience macros for setting/getting STL containers.
Also added generic Set/Get macros that work with STL containers. Currently, STL containers cannot use the generic vtkSetMacro/vtkGetMacro types since those macros require a "<<" operator within vtkDebugMacro
https://github.com/openigtlink/SlicerOpenIGTLink/pull/36
cc: @lassoan