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:
parent
d4b19157c3
commit
62429d8fc7
1 changed files with 18 additions and 0 deletions
|
|
@ -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 & %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue