PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/namespace_union.i

#
Swig | 31 lines | 28 code | 3 blank | 0 comment | 0 complexity | 24e17b19355e1148c82e32a611392aef MD5 | raw file
 1%module namespace_union
 2
 3#pragma SWIG nowarn=SWIGWARN_PARSE_UNNAMED_NESTED_CLASS
 4
 5%inline %{
 6namespace SpatialIndex 
 7{ 
 8        class Variant 
 9        { 
10        public: 
11                Variant() { }; 
12                int varType; 
13                union 
14                { 
15                        long           lVal;         // VT_LONG 
16                        short          iVal;         // VT_SHORT 
17                        float          fltVal;       // VT_FLOAT 
18                        double         dblVal;       // VT_DOUBLE 
19                        char           cVal;         // VT_CHAR 
20                        unsigned short uiVal;        // VT_USHORT 
21                        unsigned long  ulVal;        // VT_ULONG 
22                        int            intVal;       // VT_INT 
23                        unsigned int   uintVal;      // VT_UINT 
24                        bool           blVal;        // VT_BOOL 
25                        char*          pcVal;        // VT_PCHAR 
26                        void*          pvVal;        // VT_PVOID 
27                } val; 
28        }; // Variant 
29} 
30%}
31