admin
2023-01-02 954ead41d9391bca28a3cc4f9592f73f25b3bbc8
ConsoleApplication/L2DataCapture.h
@@ -8,14 +8,25 @@
#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];
   //是否在交易时间才截图
@@ -78,6 +89,15 @@
   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);
   //获取代码