1 /*
2   To create C++ files:
3 ICE_INCLUDES="-I${Xdmf_SOURCE_DIR} -I${Xdmf_SOURCE_DIR}/libsrc -I${Xdmf_BINARY_DIR}/libsrc -I${Xdmf_BINARY_DIR}/Ice/libsrc"
4 
5 XdmfTcl.cxx:
6 swig -v -c++ -make_default -includeall -tcl -prefix Xdmf  -namespace ${ICE_INCLUDES} -o XdmfTcl.cxx Xdmf.i
7 
8 XdmfPython.cxx:
9 swig -v -c++ -make_default -includeall -python -shadow $(ICE_INCLUDES) -o XdmfPython.cxx ${srcdir}/Xdmf.i
10 
11 XdmfJava.cxx:
12 swig -v -c++ -make_default -includeall -shadow -java $(ICE_INCLUDES) -o XdmfJava.cxx ${srcdir}/Xdmf.i;
13 */
14 
15 %module Xdmf
16 %{
17     /*
18 #include <XdmfCharArray.h>
19     */
20 #include <XdmfAttribute.h>
21 #include <XdmfArray.h>
22 #include <XdmfDOM.h>
23 #include <XdmfLightData.h>
24 #include <XdmfInformation.h>
25 #include <XdmfElement.h>
26 #include <XdmfDataDesc.h>
27 #include <XdmfDataStructure.h>
28 #include <XdmfHDF.h>
29 #include <XdmfHeavyData.h>
30 #include <XdmfValues.h>
31 #include <XdmfValuesXML.h>
32 #include <XdmfValuesHDF.h>
33 #include <XdmfExpression.h>
34     /*
35 #include <XdmfFormat.h>
36 #include <XdmfFormatHDF.h>
37 #include <XdmfFormatMulti.h>
38 #include <XdmfFormatXML.h>
39     */
40 #include <XdmfObject.h>
41 #include <XdmfDomain.h>
42 #include <XdmfRoot.h>
43 #include <XdmfTopology.h>
44 #include <XdmfGeometry.h>
45 #include <XdmfGrid.h>
46 #include <XdmfTime.h>
47 #include <XdmfRegion.h>
48 #include <XdmfSet.h>
49 #include <XdmfMap.h>
50     /*
51 #include <XdmfParameter.h>
52 #include <XdmfTransform.h>
53 #include <XdmfXNode.h>
54 #include <XdmfNDGM.h>
55     */
56 #include <XdmfDsm.h>
57 #include <XdmfDsmMsg.h>
58 #include <XdmfDsmBuffer.h>
59 #include <XdmfDsmComm.h>
60 #ifndef XDMF_NO_MPI
61 #include <XdmfDsmCommMpi.h>
62 #endif
63 
64 #ifndef HAVE_STRTOLL
65 # define strtoll XDMF_strtoll
XDMF_strtoll(char * str,void *,int)66 inline XDMF_LONG64 XDMF_strtoll(char *str, void*, int)
67 {
68   XDMF_LONG64 result = 0;
69   int negative=0;
70 
71   while (*str == ' ' || *str == '\t')
72     {
73     str++;
74     }
75   if (*str == '+')
76     {
77     str++;
78     }
79   else if (*str == '-')
80     {
81     negative = 1;
82     str++;
83     }
84 
85   while (*str >= '0' && *str <= '9')
86     {
87     result = (result*10)-(*str++ - '0');
88     }
89   return negative ? result : -result;
90 }
91 #else
92 # define XDMF_strtoll strtoll
93 #endif
94 
95 %}
96 
97 %include std_string.i
98 
99 /*
100 %include XdmfCharArray.h
101 */
102 %include XdmfAttribute.h
103 %include XdmfArray.h
104 %include XdmfDOM.h
105 %include XdmfLightData.h
106 %include XdmfInformation.h
107 %include XdmfElement.h
108 %include XdmfDataDesc.h
109 %include XdmfDataStructure.h
110 %include XdmfValues.h
111 %include XdmfValuesXML.h
112 %include XdmfValuesHDF.h
113 %include XdmfExpression.h
114 /*
115 %include XdmfFormat.h
116 %include XdmfFormatHDF.h
117 %include XdmfFormatMulti.h
118 %include XdmfFormatXML.h
119 %include XdmfHDFSupport.h
120 */
121 %include XdmfHeavyData.h
122 %include XdmfHDF.h
123 %include XdmfObject.h
124 %include XdmfDomain.h
125 %include XdmfRoot.h
126 %include XdmfTopology.h
127 %include XdmfGeometry.h
128 %include XdmfGrid.h
129 %include XdmfTime.h
130 %include XdmfRegion.h
131 %include XdmfSet.h
132 %include XdmfMap.h
133 /*
134 %include XdmfParameter.h
135 %include XdmfTransform.h
136 %include XdmfXNode.h
137 %include XdmfNDGM.h
138 */
139 %include XdmfDsm.h
140 %include XdmfDsmMsg.h
141 %include XdmfDsmBuffer.h
142 %include XdmfDsmComm.h
143 #ifndef XDMF_NO_MPI
144 %include XdmfDsmCommMpi.h
145 #endif
146 
147 #ifdef SWIGPYTHON
148 %{
XdmfSwigException(int code,const char * msg)149 void XdmfSwigException(int code, const char* msg)
150 {
151 /*   SWIG_exception(code, msg); */
152 }
153 %}
154 #endif
155