-
Notifications
You must be signed in to change notification settings - Fork 7
/
ctp.i
35 lines (28 loc) · 1.02 KB
/
ctp.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
%module(directors="1") ctp
%include "typemaps.i"
%{
#include "./ctp/ThostFtdcMdApi.h"
#include "./ctp/ThostFtdcTraderApi.h"
#include "./ctp/ThostFtdcUserApiDataType.h"
#include "./ctp/ThostFtdcUserApiStruct.h"
%}
/* These symbols are NEVER used in original files */
%ignore TThostFtdcVirementTradeCodeType;
%ignore THOST_FTDC_VTC_BankBankToFuture;
%ignore THOST_FTDC_VTC_BankFutureToBank;
%ignore THOST_FTDC_VTC_FutureBankToFuture;
%ignore THOST_FTDC_VTC_FutureFutureToBank;
%ignore TThostFtdcFBTTradeCodeEnumType;
%ignore THOST_FTDC_FTC_BankLaunchBankToBroker;
%ignore THOST_FTDC_FTC_BrokerLaunchBankToBroker;
%ignore THOST_FTDC_FTC_BankLaunchBrokerToBank;
%ignore THOST_FTDC_FTC_BrokerLaunchBrokerToBank;
%include "various.i"
%apply char **STRING_ARRAY { char *ppInstrumentID[] };
%javaconst(1);
%feature("director") CThostFtdcMdSpi;
%include "./ctp/ThostFtdcMdApi.h"
%feature("director") CThostFtdcTraderSpi;
%include "./ctp/ThostFtdcTraderApi.h"
%include "./ctp/ThostFtdcUserApiDataType.h"
%include "./ctp/ThostFtdcUserApiStruct.h"