Skip to content

Commit

Permalink
BUG: Remove SpatialObjectProperty's writable string methods from SWIG
Browse files Browse the repository at this point in the history
SWIG's binding for writable std::string objects is a "std::string *"
which is not implemented.
  • Loading branch information
blowekamp authored and thewtex committed Sep 11, 2024
1 parent 7b83336 commit efe773f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ class ITKSpatialObjects_EXPORT SpatialObjectProperty
m_Name = name;
}

#if !defined(ITK_WRAPPING_PARSER)
std::string &
GetName()
{
return m_Name;
}
#endif

const std::string &
GetName() const
Expand All @@ -123,15 +125,13 @@ class ITKSpatialObjects_EXPORT SpatialObjectProperty
return value;
}


#if !defined(ITK_WRAPPING_PARSER)
bool
GetTagStringValue(const std::string & tag, std::string & value) const;
#endif
std::string
GetTagStringValue(const std::string & tag) const
{
std::string value = "";
this->GetTagStringValue(tag, value);
return value;
}
GetTagStringValue(const std::string & tag) const;


std::map<std::string, double> &
Expand Down
9 changes: 9 additions & 0 deletions Modules/Core/SpatialObjects/src/itkSpatialObjectProperty.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@ SpatialObjectProperty::GetTagStringValue(const std::string & tag, std::string &
}
}


std::string
SpatialObjectProperty::GetTagStringValue(const std::string & tag) const
{
std::string value = "";
this->GetTagStringValue(tag, value);
return value;
}

std::map<std::string, double> &
SpatialObjectProperty::GetTagScalarDictionary()
{
Expand Down

0 comments on commit efe773f

Please sign in to comment.