Typemaps for std::string member variables

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6503 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-10-25 20:44:53 +00:00
commit 62429d8fc7

View file

@ -36,6 +36,15 @@ class string;
return $imcall;
}
%typemap(csvarin) string %{
set {
$imcall;
} %}
%typemap(csvarout) string %{
get {
return $imcall;
} %}
%typemap(typecheck) string = char *;
%typemap(throws) string %{
@ -58,6 +67,15 @@ class string;
return $imcall;
}
%typemap(csvarin) const string & %{
set {
$imcall;
} %}
%typemap(csvarout) const string & %{
get {
return $imcall;
} %}
%typemap(typecheck) const string & = char *;
%typemap(throws) const string & %{