| | |
| | | #include "BaseCapture.h" |
| | | #define THS_FRAME_COUNT 8 |
| | | |
| | | struct L2TradeQueue |
| | | { |
| | | string sellTime; |
| | | string sellOnePrice; |
| | | string sellOneVolumn; |
| | | string buyTime; |
| | | string buyOnePrice; |
| | | string buyOneVolumn; |
| | | }; |
| | | |
| | | typedef void (*CallbackFun)(int index, string code,long captureTime,long processTime, list<TradeData> dataList, void* contex); |
| | | typedef void (*CallbackFun_Trade_Queue)(int index, string code, list<int> numList, void* contex); |
| | | typedef void (*CallbackFun_Trade_Queue)(int index, string code, L2TradeQueue info, void* contex); |
| | | |
| | | |
| | | class L2DataCapture: public BaseCapture |
| | | { |
| | | private: |
| | | static OpenCLExcuter* openCLExcuter[THS_FRAME_COUNT]; |
| | | static OpenCLExcuter* openCLExcuterQueue[THS_FRAME_COUNT]; |
| | | static TradeQueueCapture* tradeQueueCapture[THS_FRAME_COUNT]; |
| | | |
| | | //是否在交易时间才截图 |
| | |
| | | static list<TradeData> captureLevel2TradeData(HWND hwnd,int index) throw(int); |
| | | static list<TradeData> captureLevel2TradeData(cv::Mat& oimg,int identify); |
| | | static list<TradeData> captureLevel2TradeData(OpenCLExcuter *openCLExcuter, cv::Mat& oimg, int identify); |
| | | |
| | | |
| | | static L2TradeQueue captureLevel2TradeQueueData(HWND hwnd, int index); |
| | | static L2TradeQueue captureLevel2TradeQueueData(cv::Mat& oimg, int identify); |
| | | static L2TradeQueue captureLevel2TradeQueueData(OpenCLExcuter* openCLExcuter, cv::Mat& oimg, int identify); |
| | | |
| | | |
| | | |
| | | |
| | | //设置代码 |
| | | static void setGPCode(int index, string code); |
| | | //获取代码 |