-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathql.i
66 lines (57 loc) · 1.39 KB
/
ql.i
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
%{
#ifdef barrier
#undef barrier
#endif
%}
%{
#include <ql/quantlib.hpp>
#ifdef BOOST_MSVC
#ifdef QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN
#define BOOST_LIB_NAME boost_thread
#include <boost/config/auto_link.hpp>
#undef BOOST_LIB_NAME
#define BOOST_LIB_NAME boost_system
#include <boost/config/auto_link.hpp>
#undef BOOST_LIB_NAME
#endif
#endif
// add here SWIG version check
#if defined(_MSC_VER) // Microsoft Visual C++ 6.0
// disable Swig-dependent warnings
// 'identifier1' has C-linkage specified,
// but returns UDT 'identifier2' which is incompatible with C
#pragma warning(disable: 4190)
// 'int' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning(disable: 4800)
// debug info too long etc etc
#pragma warning(disable: 4786)
#endif
%}
#ifdef SWIGPYTHON
%{
#if PY_VERSION_HEX < 0x02010000
#error Python version 2.1.0 or later is required
#endif
%}
#endif
%include bonds.i
%include calendars.i
%include cashflows.i
%include common.i
%include date.i
%include daycounters.i
%include fittedbondcurve.i
%include functions.i
%include instruments.i
%include interestrate.i
%include linearalgebra.i
%include marketelements.i
%include null.i
%include observer.i
%include optimizers.i
%include ratehelpers.i
%include scheduler.i
%include settings.i
%include termstructures.i
%include types.i
%include vectors.i