PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Lib/csharp/enumsimple.swg

#
Unknown | 88 lines | 69 code | 19 blank | 0 comment | 0 complexity | b1c41fe777f59890e9c8ac4e33cae186 MD5 | raw file
 1/* -----------------------------------------------------------------------------
 2 * enumsimple.swg
 3 *
 4 * This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
 5 * and earlier wrapped global enums with constant integers in the module
 6 * class. Enums declared within a C++ class were wrapped by constant integers
 7 * in the C# proxy class.
 8 * ----------------------------------------------------------------------------- */
 9
10// const enum SWIGTYPE & typemaps
11%typemap(ctype) const enum SWIGTYPE & "int"
12%typemap(imtype) const enum SWIGTYPE & "int"
13%typemap(cstype) const enum SWIGTYPE & "int"
14
15%typemap(in) const enum SWIGTYPE & ($*1_ltype temp)
16%{ temp = ($*1_ltype)$input; 
17   $1 = &temp; %}
18%typemap(out) const enum SWIGTYPE & %{ $result = *$1; %}
19
20%typemap(directorout,warning=SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG) const enum SWIGTYPE &
21%{ static $*1_ltype temp = ($*1_ltype)$input; 
22   $result = &temp; %}
23%typemap(directorin) const enum SWIGTYPE & "$input = $1;"
24%typemap(csdirectorin) const enum SWIGTYPE & "$iminput"
25%typemap(csdirectorout) const enum SWIGTYPE & "$cscall"
26
27%typecheck(SWIG_TYPECHECK_INT32) const enum SWIGTYPE & ""
28
29%typemap(throws, canthrow=1) const enum SWIGTYPE &
30%{ (void)$1;
31   SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
32   return $null; %}
33
34%typemap(csin) const enum SWIGTYPE & "$csinput"
35%typemap(csout, excode=SWIGEXCODE) const enum SWIGTYPE & {
36    int ret = $imcall;$excode
37    return ret;
38  }
39
40%typemap(csvarout, excode=SWIGEXCODE2) const enum SWIGTYPE & %{
41    get {
42      int ret = $imcall;$excode
43      return ret;
44    } %}
45
46
47// enum SWIGTYPE typemaps
48%typemap(ctype) enum SWIGTYPE "int"
49%typemap(imtype) enum SWIGTYPE "int"
50%typemap(cstype) enum SWIGTYPE "int"
51
52%typemap(in) enum SWIGTYPE %{ $1 = ($1_ltype)$input; %}
53%typemap(out) enum SWIGTYPE %{ $result = $1; %}
54
55%typemap(directorout) enum SWIGTYPE  %{ $result = ($1_ltype)$input; %}
56%typemap(directorin) enum SWIGTYPE "$input = $1;"
57%typemap(csdirectorin) enum SWIGTYPE "$iminput"
58%typemap(csdirectorout) enum SWIGTYPE "$cscall"
59
60%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
61
62%typemap(throws, canthrow=1) enum SWIGTYPE
63%{ (void)$1;
64   SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, "C++ $1_type exception thrown");
65   return $null; %}
66
67%typemap(csin) enum SWIGTYPE "$csinput"
68%typemap(csout, excode=SWIGEXCODE) enum SWIGTYPE {
69    int ret = $imcall;$excode
70    return ret;
71  }
72
73%typemap(csvarout, excode=SWIGEXCODE2) enum SWIGTYPE %{
74    get {
75      int ret = $imcall;$excode
76      return ret;
77    } %}
78
79%typemap(csbase)           enum SWIGTYPE ""
80%typemap(csclassmodifiers) enum SWIGTYPE ""
81%typemap(cscode)           enum SWIGTYPE ""
82%typemap(csimports)        enum SWIGTYPE ""
83%typemap(csinterfaces)     enum SWIGTYPE ""
84
85%typemap(csbody) enum SWIGTYPE ""
86
87%csenum(simple);
88