File: Xdmf.i

package info (click to toggle)
vtk6 6.1.0+dfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 165,164 kB
  • ctags: 226,428
  • sloc: cpp: 1,354,490; ansic: 730,748; python: 227,134; tcl: 48,285; xml: 8,290; yacc: 4,832; java: 3,827; perl: 3,108; lex: 1,809; sh: 1,437; asm: 471; makefile: 229
file content (154 lines) | stat: -rw-r--r-- 3,149 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
  To create C++ files:
ICE_INCLUDES="-I${Xdmf_SOURCE_DIR} -I${Xdmf_SOURCE_DIR}/libsrc -I${Xdmf_BINARY_DIR}/libsrc -I${Xdmf_BINARY_DIR}/Ice/libsrc"

XdmfTcl.cxx:
swig -v -c++ -make_default -includeall -tcl -prefix Xdmf  -namespace ${ICE_INCLUDES} -o XdmfTcl.cxx Xdmf.i

XdmfPython.cxx:
swig -v -c++ -make_default -includeall -python -shadow $(ICE_INCLUDES) -o XdmfPython.cxx ${srcdir}/Xdmf.i

XdmfJava.cxx:
swig -v -c++ -make_default -includeall -shadow -java $(ICE_INCLUDES) -o XdmfJava.cxx ${srcdir}/Xdmf.i;  
*/

%module Xdmf
%{
    /*
#include <XdmfCharArray.h>
    */
#include <XdmfAttribute.h>
#include <XdmfArray.h>
#include <XdmfDOM.h>
#include <XdmfLightData.h>
#include <XdmfInformation.h>
#include <XdmfElement.h>
#include <XdmfDataDesc.h>
#include <XdmfDataStructure.h>
#include <XdmfHDF.h>
#include <XdmfHeavyData.h>
#include <XdmfValues.h>
#include <XdmfValuesXML.h>
#include <XdmfValuesHDF.h>
#include <XdmfExpression.h>
    /*
#include <XdmfFormat.h>
#include <XdmfFormatHDF.h>
#include <XdmfFormatMulti.h>
#include <XdmfFormatXML.h>
    */
#include <XdmfObject.h>
#include <XdmfDomain.h>
#include <XdmfRoot.h>
#include <XdmfTopology.h>
#include <XdmfGeometry.h>
#include <XdmfGrid.h>
#include <XdmfTime.h>
#include <XdmfRegion.h>
#include <XdmfSet.h>
#include <XdmfMap.h>
    /*
#include <XdmfParameter.h>
#include <XdmfTransform.h>
#include <XdmfXNode.h>
#include <XdmfNDGM.h>
    */
#include <XdmfDsm.h>
#include <XdmfDsmMsg.h>
#include <XdmfDsmBuffer.h>
#include <XdmfDsmComm.h>
#ifndef XDMF_NO_MPI
#include <XdmfDsmCommMpi.h>
#endif

#ifndef HAVE_STRTOLL
# define strtoll XDMF_strtoll
inline XDMF_LONG64 XDMF_strtoll(char *str, void*, int)
{
  XDMF_LONG64 result = 0;
  int negative=0;

  while (*str == ' ' || *str == '\t')
    {
    str++;
    }
  if (*str == '+')
    {
    str++;
    }
  else if (*str == '-')
    {
    negative = 1;
    str++;
    }

  while (*str >= '0' && *str <= '9')
    {
    result = (result*10)-(*str++ - '0');
    }
  return negative ? result : -result;
}
#else
# define XDMF_strtoll strtoll
#endif

%}

%include std_string.i

/*
%include XdmfCharArray.h
*/
%include XdmfAttribute.h
%include XdmfArray.h
%include XdmfDOM.h
%include XdmfLightData.h
%include XdmfInformation.h
%include XdmfElement.h
%include XdmfDataDesc.h
%include XdmfDataStructure.h
%include XdmfValues.h
%include XdmfValuesXML.h
%include XdmfValuesHDF.h
%include XdmfExpression.h
/*
%include XdmfFormat.h
%include XdmfFormatHDF.h
%include XdmfFormatMulti.h
%include XdmfFormatXML.h
%include XdmfHDFSupport.h
*/
%include XdmfHeavyData.h
%include XdmfHDF.h
%include XdmfObject.h
%include XdmfDomain.h
%include XdmfRoot.h
%include XdmfTopology.h
%include XdmfGeometry.h
%include XdmfGrid.h
%include XdmfTime.h
%include XdmfRegion.h
%include XdmfSet.h
%include XdmfMap.h
/*
%include XdmfParameter.h
%include XdmfTransform.h
%include XdmfXNode.h
%include XdmfNDGM.h
*/
%include XdmfDsm.h
%include XdmfDsmMsg.h
%include XdmfDsmBuffer.h
%include XdmfDsmComm.h
#ifndef XDMF_NO_MPI
%include XdmfDsmCommMpi.h
#endif

#ifdef SWIGPYTHON
%{
void XdmfSwigException(int code, const char* msg)
{
/*   SWIG_exception(code, msg); */
}
%}
#endif