| | |
| | | #include "OpenCLExcuter.h" |
| | | #include "CaptureUtil.h" |
| | | #include "TradeQueueCapture.h" |
| | | #include "BaseCapture.h" |
| | | #define THS_FRAME_COUNT 8 |
| | | |
| | | typedef void (*CallbackFun)(int index, string code, list<TradeData> dataList, void* contex); |
| | | typedef void (*CallbackFun_Trade_Queue)(int index, string code, list<int> numList, void* contex); |
| | | |
| | | |
| | | class L2DataCapture |
| | | class L2DataCapture: public BaseCapture |
| | | { |
| | | private: |
| | | static OpenCLExcuter* openCLExcuter[THS_FRAME_COUNT]; |
| | |
| | | |
| | | public: |
| | | L2DataCapture(); |
| | | |
| | | //设置交易时间截图上传数据 |
| | | static void setTradeTimeCapture(bool enable) { |
| | | tradeTimeCapture = enable; |
| | | } |
| | | |
| | | //初始化 |
| | | void init(CallbackFun callback, CallbackFun_Trade_Queue trade_queue_callback, void* context); |
| | |
| | | //获取代码 |
| | | static string getGPCode(int index); |
| | | |
| | | //设置交易时间截图上传数据 |
| | | static void setTradeTimeCapture(bool enable); |
| | | |
| | | |
| | | }; |
| | | |