Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S Slicer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Sam Horvath
  • Slicer
  • Merge requests
  • !973

ENH: Add Set/Get and XML macros for iterable STL container properties

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Sunderlandkyl requested to merge github/fork/Sunderlandkyl/std_vector_xml_macros into master Jun 18, 2018
  • Overview 14
  • Commits 1
  • Pipelines 0
  • Changes 4

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

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Sunderlandkyl/std_vector_xml_macros