111
117
%{ $1 = ($1_ltype)$input; %}
119
%typemap(directorout) char,
132
%{ $result = ($1_ltype)$input; %}
134
%typemap(directorin) bool "$input = $1;"
135
%typemap(directorin) char "$input = $1;"
136
%typemap(directorin) signed char "$input = $1;"
137
%typemap(directorin) unsigned char "$input = $1;"
138
%typemap(directorin) short "$input = $1;"
139
%typemap(directorin) unsigned short "$input = $1;"
140
%typemap(directorin) int "$input = $1;"
141
%typemap(directorin) unsigned int "$input = $1;"
142
%typemap(directorin) long "$input = $1;"
143
%typemap(directorin) unsigned long "$input = $1;"
144
%typemap(directorin) long long "$input = $1;"
145
%typemap(directorin) unsigned long long "$input = $1;"
146
%typemap(directorin) float "$input = $1;"
147
%typemap(directorin) double "$input = $1;"
149
%typemap(csdirectorin) char,
164
%typemap(csdirectorout) char,
113
179
%typemap(out) bool %{ $result = $1; %}
114
180
%typemap(out) char %{ $result = $1; %}
115
181
%typemap(out) signed char %{ $result = $1; %}
126
192
%typemap(out) double %{ $result = $1; %}
128
194
/* char * - treat as String */
129
%typemap(in) char * %{ $1 = $input; %}
130
%typemap(out) char * %{ $result = SWIG_csharp_string_callback($1); %}
195
%typemap(in) char * %{ $1 = ($1_ltype)$input; %}
196
%typemap(out) char * %{ $result = SWIG_csharp_string_callback((const char *)$1); %}
197
%typemap(directorout, warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG) char * %{ $result = ($1_ltype)$input; %}
198
%typemap(directorin) char * %{ $input = SWIG_csharp_string_callback((const char *)$1); %}
199
%typemap(csdirectorin) char * "$iminput"
200
%typemap(csdirectorout) char * "$cscall"
132
202
%typemap(out, null="") void ""
203
%typemap(csdirectorin) void "$iminput"
204
%typemap(csdirectorout) void "$cscall"
205
%typemap(directorin) void ""
134
207
/* primitive types by const reference */
135
208
%typemap(in) const bool & ($*1_ltype temp)
136
209
%{ temp = $input ? true : false;
212
%typemap(directorout,warning=SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG) const bool &
213
%{ static $*1_ltype temp;
214
temp = $input ? true : false;
217
%typemap(csdirectorin) const bool & "$iminput"
218
%typemap(csdirectorout) const bool & "$cscall"
139
220
%typemap(in) const char & ($*1_ltype temp),
140
221
const signed char & ($*1_ltype temp),
141
222
const unsigned char & ($*1_ltype temp),
152
233
%{ temp = ($*1_ltype)$input;
236
%typemap(directorout,warning=SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG) const char &,
238
const unsigned char &,
240
const unsigned short &,
242
const unsigned int &,
244
const unsigned long &,
248
%{ static $*1_ltype temp;
249
temp = ($*1_ltype)$input;
252
%typemap(directorin) const bool & "$input = $1_name;"
253
%typemap(directorin) const char & "$input = $1_name;"
254
%typemap(directorin) const signed char & "$input = $1_name;"
255
%typemap(directorin) const unsigned char & "$input = $1_name;"
256
%typemap(directorin) const short & "$input = $1_name;"
257
%typemap(directorin) const unsigned short & "$input = $1_name;"
258
%typemap(directorin) const int & "$input = $1_name;"
259
%typemap(directorin) const unsigned int & "$input = $1_name;"
260
%typemap(directorin) const long & "$input = $1_name;"
261
%typemap(directorin) const unsigned long & "$input = $1_name;"
262
%typemap(directorin) const long long & "$input = $1_name;"
263
%typemap(directorin) const float & "$input = $1_name;"
264
%typemap(directorin) const double & "$input = $1_name;"
266
%typemap(csdirectorin) const char & ($*1_ltype temp),
267
const signed char & ($*1_ltype temp),
268
const unsigned char & ($*1_ltype temp),
269
const short & ($*1_ltype temp),
270
const unsigned short & ($*1_ltype temp),
271
const int & ($*1_ltype temp),
272
const unsigned int & ($*1_ltype temp),
273
const long & ($*1_ltype temp),
274
const unsigned long & ($*1_ltype temp),
275
const long long & ($*1_ltype temp),
276
const float & ($*1_ltype temp),
277
const double & ($*1_ltype temp)
280
%typemap(csdirectorout) const char & ($*1_ltype temp),
281
const signed char & ($*1_ltype temp),
282
const unsigned char & ($*1_ltype temp),
283
const short & ($*1_ltype temp),
284
const unsigned short & ($*1_ltype temp),
285
const int & ($*1_ltype temp),
286
const unsigned int & ($*1_ltype temp),
287
const long & ($*1_ltype temp),
288
const unsigned long & ($*1_ltype temp),
289
const long long & ($*1_ltype temp),
290
const float & ($*1_ltype temp),
291
const double & ($*1_ltype temp)
155
295
%typemap(out) const bool & %{ $result = *$1; %}
156
296
%typemap(out) const char & %{ $result = *$1; %}
157
297
%typemap(out) const signed char & %{ $result = *$1; %}
337
%typemap(directorin) SWIGTYPE
338
%{ $input = (void *)&$1; %}
339
%typemap(csdirectorin) SWIGTYPE "new $&csclassname($iminput, false)"
340
%typemap(csdirectorout) SWIGTYPE "$&csclassname.getCPtr($cscall).Handle"
189
342
/* Generic pointers and references */
190
343
%typemap(in) SWIGTYPE * %{ $1 = ($1_ltype)$input; %}
191
344
%typemap(in) SWIGTYPE (CLASS::*) %{ $1 = *($&1_ltype)&$input; %}
197
350
%typemap(out) SWIGTYPE *, SWIGTYPE & %{ $result = (void *)$1; %}
198
%typemap(out) SWIGTYPE (CLASS::*) %{ *($&1_ltype)&$result = $1; %}
351
%typemap(out) SWIGTYPE (CLASS::*) %{ $result = (void *)&$1; %}
352
%typemap(directorout, warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG) SWIGTYPE *, SWIGTYPE (CLASS::*)
353
%{ $result = ($1_ltype)$input; %}
354
%typemap(directorin) SWIGTYPE *, SWIGTYPE (CLASS::*)
355
%{ $input = (void *) $1; %}
357
%typemap(directorout, warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG) SWIGTYPE &
359
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type $1_type", 0);
362
$result = ($1_ltype)$input; %}
363
%typemap(directorin) SWIGTYPE &
364
%{ $input = ($1_ltype) &$1; %}
366
%typemap(csdirectorin) SWIGTYPE *, SWIGTYPE (CLASS::*), SWIGTYPE & "new $csclassname($iminput, false)"
367
%typemap(csdirectorout) SWIGTYPE *, SWIGTYPE (CLASS::*), SWIGTYPE & "$csclassname.getCPtr($cscall).Handle"
201
369
/* Default array handling */
202
370
%typemap(in) SWIGTYPE [] %{ $1 = ($1_ltype)$input; %}
203
371
%typemap(out) SWIGTYPE [] %{ $result = $1; %}
205
373
/* char arrays - treat as String */
206
%typemap(in) char[ANY], char[] %{ $1 = $input; %}
207
%typemap(out) char[ANY], char[] %{ $result = SWIG_csharp_string_callback($1); %}
374
%typemap(in) char[ANY], char[] %{ $1 = ($1_ltype)$input; %}
375
%typemap(out) char[ANY], char[] %{ $result = SWIG_csharp_string_callback((const char *)$1); %}
377
%typemap(directorout) char[ANY], char[] %{ $result = ($1_ltype)$input; %}
378
%typemap(directorin) char[ANY], char[] %{ $input = SWIG_csharp_string_callback((const char *)$1); %}
380
%typemap(csdirectorin) char[ANY], char[] "$iminput"
381
%typemap(csdirectorout) char[ANY], char[] "$cscall"
210
384
/* Typecheck typemaps - The purpose of these is merely to issue a warning for overloaded C++ functions
612
%typemap(csconstruct, excode=SWIGEXCODE) SWIGTYPE %{: this($imcall, true) {$excode
616
%typemap(csdestruct, methodname="Dispose") SWIGTYPE {
617
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
621
swigCPtr = new HandleRef(null, IntPtr.Zero);
622
GC.SuppressFinalize(this);
625
%typemap(csdestruct_derived, methodname="Dispose") SWIGTYPE {
626
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
630
swigCPtr = new HandleRef(null, IntPtr.Zero);
631
GC.SuppressFinalize(this);
786
%typemap(csconstruct, excode=SWIGEXCODE,directorconnect="\n SwigDirectorConnect();") SWIGTYPE %{: this($imcall, true) {$excode$directorconnect
790
%typemap(csdestruct, methodname="Dispose", methodmodifiers="public") SWIGTYPE {
792
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
796
swigCPtr = new HandleRef(null, IntPtr.Zero);
797
GC.SuppressFinalize(this);
801
%typemap(csdestruct_derived, methodname="Dispose", methodmodifiers="public") SWIGTYPE {
803
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
807
swigCPtr = new HandleRef(null, IntPtr.Zero);
808
GC.SuppressFinalize(this);
813
%typemap(directordisconnect, methodname="swigDirectorDisconnect") SWIGTYPE %{
814
protected void $methodname() {
636
820
/* C# specific directives */
637
821
#define %csconst(flag) %feature("cs:const","flag")