svMultiPhysics
Loading...
Searching...
No Matches
SimVascular.h
1/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2 *
3 * All Rights Reserved.
4 *
5 * See Copyright-SimVascular.txt for additional details.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining
8 * a copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation the rights to use, copy, modify, merge, publish,
11 * distribute, sublicense, and/or sell copies of the Software, and to
12 * permit persons to whom the Software is furnished to do so, subject
13 * to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#ifndef SIMVASCULAR_H
32
33#define CV_OK 1
34#define CV_ERROR 0
35
36/* true / false don't seem to be defined on linux */
37#ifndef WIN32
38#ifndef TRUE
39#define TRUE 1
40#endif
41#ifndef FALSE
42#define FALSE 0
43#endif
44#endif
45
46#ifdef WINDOWS
47 #ifndef SV_STATIC_LINK
48 #define SV_DLL_EXPORT __declspec(dllexport)
49 #define SV_DLL_IMPORT __declspec(dllimport)
50 #else
51 #define SV_DLL_EXPORT
52 #define SV_DLL_IMPORT
53 #endif
54#else
55 #define SV_DLL_EXPORT
56 #define SV_DLL_IMPORT
57#endif
58
59#include "simvascular_version.h"
60#include "simvascular_options.h"
61
62#ifdef SV_EXPORT_UTILS
63 #undef SV_EXPORT_UTILS
64#endif
65#ifdef SV_EXPORT_UTILS_COMPILE
66 #define SV_EXPORT_UTILS SV_DLL_EXPORT
67#else
68 #define SV_EXPORT_UTILS SV_DLL_IMPORT
69#endif
70
71#ifdef SV_EXPORT_GLOBALS
72 #undef SV_EXPORT_GLOBALS
73#endif
74#ifdef SV_EXPORT_GLOBALS_COMPILE
75 #define SV_EXPORT_GLOBALS SV_DLL_EXPORT
76#else
77 #define SV_EXPORT_GLOBALS SV_DLL_IMPORT
78#endif
79
80#ifdef SV_EXPORT_REPOSITORY
81 #undef SV_EXPORT_REPOSITORY
82#endif
83#ifdef SV_EXPORT_REPOSITORY_COMPILE
84 #define SV_EXPORT_REPOSITORY SV_DLL_EXPORT
85#else
86 #define SV_EXPORT_REPOSITORY SV_DLL_IMPORT
87#endif
88
89#ifdef SV_EXPORT_SYSGEOM
90 #undef SV_EXPORT_SYSGEOM
91#endif
92#ifdef SV_EXPORT_SYSGEOM_COMPILE
93 #define SV_EXPORT_SYSGEOM SV_DLL_EXPORT
94#else
95 #define SV_EXPORT_SYSGEOM SV_DLL_IMPORT
96#endif
97
98#ifdef SV_EXPORT_IMAGE
99 #undef SV_EXPORT_IMAGE
100#endif
101#ifdef SV_EXPORT_IMAGE_COMPILE
102 #define SV_EXPORT_IMAGE SV_DLL_EXPORT
103#else
104 #define SV_EXPORT_IMAGE SV_DLL_IMPORT
105#endif
106
107#ifdef SV_EXPORT_TCLPYTHON
108 #undef SV_EXPORT_TCLPYTHON
109#endif
110#ifdef SV_EXPORT_TCLPYTHON_COMPILE
111 #define SV_EXPORT_TCLPYTHON SV_DLL_EXPORT
112#else
113 #define SV_EXPORT_TCLPYTHON SV_DLL_IMPORT
114#endif
115
116#ifdef SV_EXPORT_POST
117 #undef SV_EXPORT_POST
118#endif
119#ifdef SV_EXPORT_POST_COMPILE
120 #define SV_EXPORT_POST SV_DLL_EXPORT
121#else
122 #define SV_EXPORT_POST SV_DLL_IMPORT
123#endif
124
125#ifdef SV_EXPORT_LSET
126 #undef SV_EXPORT_LSET
127#endif
128#ifdef SV_EXPORT_LSET_COMPILE
129 #define SV_EXPORT_LSET SV_DLL_EXPORT
130#else
131 #define SV_EXPORT_LSET SV_DLL_IMPORT
132#endif
133
134#ifdef SV_EXPORT_SOLID
135 #undef SV_EXPORT_SOLID
136#endif
137#ifdef SV_EXPORT_SOLID_COMPILE
138 #define SV_EXPORT_SOLID SV_DLL_EXPORT
139#else
140 #define SV_EXPORT_SOLID SV_DLL_IMPORT
141#endif
142
143#ifdef SV_EXPORT_DISCRETE
144 #undef SV_EXPORT_DISCRETE
145#endif
146#ifdef SV_EXPORT_DISCRETE_COMPILE
147 #define SV_EXPORT_DISCRETE SV_DLL_EXPORT
148#else
149 #define SV_EXPORT_DISCRETE SV_DLL_IMPORT
150#endif
151
152#ifdef SV_EXPORT_MESHSIM_SOLID
153 #undef SV_EXPORT_MESHSIM_SOLID
154#endif
155#ifdef SV_EXPORT_MESHSIM_SOLID_COMPILE
156 #define SV_EXPORT_MESHSIM_SOLID SV_DLL_EXPORT
157#else
158 #define SV_EXPORT_MESHSIM_SOLID SV_DLL_IMPORT
159#endif
160
161#ifdef SV_EXPORT_OPENCASCADE
162 #undef SV_EXPORT_OPENCASCADE
163#endif
164#ifdef SV_EXPORT_OPENCASCADE_COMPILE
165 #define SV_EXPORT_OPENCASCADE SV_DLL_EXPORT
166#else
167 #define SV_EXPORT_OPENCASCADE SV_DLL_IMPORT
168#endif
169
170#ifdef SV_EXPORT_POLYDATASOLID
171 #undef SV_EXPORT_POLYDATASOLID
172#endif
173#ifdef SV_EXPORT_POLYDATASOLID_COMPILE
174 #define SV_EXPORT_POLYDATASOLID SV_DLL_EXPORT
175#else
176 #define SV_EXPORT_POLYDATASOLID SV_DLL_IMPORT
177#endif
178
179#ifdef SV_EXPORT_ADAPTOR
180 #undef SV_EXPORT_ADAPTOR
181#endif
182#ifdef SV_EXPORT_ADAPTOR_COMPILE
183 #define SV_EXPORT_ADAPTOR SV_DLL_EXPORT
184#else
185 #define SV_EXPORT_ADAPTOR SV_DLL_IMPORT
186#endif
187
188#ifdef SV_EXPORT_MESH
189 #undef SV_EXPORT_MESH
190#endif
191#ifdef SV_EXPORT_MESH_COMPILE
192 #define SV_EXPORT_MESH SV_DLL_EXPORT
193#else
194 #define SV_EXPORT_MESH SV_DLL_IMPORT
195#endif
196
197#ifdef SV_EXPORT_MESHSIM_ADAPTOR
198 #undef SV_EXPORT_MESHSIM_ADAPTOR
199#endif
200#ifdef SV_EXPORT_MESHSIM_ADAPTOR_COMPILE
201 #define SV_EXPORT_MESHSIM_ADAPTOR SV_DLL_EXPORT
202#else
203 #define SV_EXPORT_MESHSIM_ADAPTOR SV_DLL_IMPORT
204#endif
205
206#ifdef SV_EXPORT_MESHSIM_MESH
207 #undef SV_EXPORT_MESHSIM_MESH
208#endif
209#ifdef SV_EXPORT_MESHSIM_MESH_COMPILE
210 #define SV_EXPORT_MESHSIM_MESH SV_DLL_EXPORT
211#else
212 #define SV_EXPORT_MESHSIM_MESH SV_DLL_IMPORT
213#endif
214
215#ifdef SV_EXPORT_MMG
216 #undef SV_EXPORT_MMG
217#endif
218#ifdef SV_EXPORT_MMG_COMPILE
219 #define SV_EXPORT_MMG SV_DLL_EXPORT
220#else
221 #define SV_EXPORT_MMG SV_DLL_IMPORT
222#endif
223
224#ifdef SV_EXPORT_TET_ADAPTOR
225 #undef SV_EXPORT_TET_ADAPTOR
226#endif
227#ifdef SV_EXPORT_TET_ADAPTOR_COMPILE
228 #define SV_EXPORT_TET_ADAPTOR SV_DLL_EXPORT
229#else
230 #define SV_EXPORT_TET_ADAPTOR SV_DLL_IMPORT
231#endif
232
233#ifdef SV_EXPORT_TETGEN_MESH
234 #undef SV_EXPORT_TETGEN_MESH
235#endif
236#ifdef SV_EXPORT_TETGEN_MESH_COMPILE
237 #define SV_EXPORT_TETGEN_MESH SV_DLL_EXPORT
238#else
239 #define SV_EXPORT_TETGEN_MESH SV_DLL_IMPORT
240#endif
241
242#ifdef SV_EXPORT_SEGITK
243 #undef SV_EXPORT_SEGITK
244#endif
245#ifdef SV_EXPORT_SEGITK_COMPILE
246 #define SV_EXPORT_SEGITK SV_DLL_EXPORT
247#else
248 #define SV_EXPORT_SEGITK SV_DLL_IMPORT
249#endif
250
251#ifdef SV_EXPORT_SEGITKUTILS
252 #undef SV_EXPORT_SEGITKUTILS
253#endif
254#ifdef SV_EXPORT_SEGITKUTILS_COMPILE
255 #define SV_EXPORT_SEGITKUTILS SV_DLL_EXPORT
256#else
257 #define SV_EXPORT_SEGITKUTILS SV_DLL_IMPORT
258#endif
259
260#ifdef SV_EXPORT_PARASOLID
261 #undef SV_EXPORT_PARASOLID
262#endif
263#ifdef SV_EXPORT_PARASOLID_COMPILE
264 #define SV_EXPORT_PARASOLID SV_DLL_EXPORT
265#else
266 #define SV_EXPORT_PARASOLID SV_DLL_IMPORT
267#endif
268
269#ifdef SV_EXPORT_TCLPYTHON
270 #undef SV_EXPORT_TCLPYTHON
271#endif
272#ifdef SV_EXPORT_TCLPYTHON_COMPILE
273 #define SV_EXPORT_TCLPYTHON SV_DLL_EXPORT
274#else
275 #define SV_EXPORT_TCLPYTHON SV_DLL_IMPORT
276#endif
277
278#ifdef SVQTMAINWINDOW_EXPORT
279 #undef SVQTMAINWINDOW_EXPORT
280#endif
281#ifdef SVQTMAINWINDOW_EXPORT_COMPILE
282 #define SVQTMAINWINDOW_EXPORT SV_DLL_EXPORT
283#else
284 #define SVQTMAINWINDOW_EXPORT SV_DLL_IMPORT
285#endif
286
287#endif /* SIMVASCULAR_H */
288