#ifndef DISPATHDATATYPE_HPP #define DISPATHDATATYPE_HPP #include #include #include typedef struct { int Year; int Month; int Day; int Hour; int Minute; int Second; } TimeSt, *pTimeSt; typedef struct { std::string strDevID; int nChannelID; TimeSt startTime; TimeSt endTime; std::string srcPath; } ChannelLoadFileManage, *pChannelLoadFileManage; //typedef struct //{ // int nChn;//通道号 // QDateTime tCurrentTime;//正在处理的文件开始时间 // bool bFinishFlag;//完成标志 //}ChnFinishFlag; //typedef struct //{ // int nDuration;//每次下载的时长,单位小时 // int nTotalChn;//总通道数 // QVector vChnInfo;//每个通道的完成信息 //}DevChnInfo; typedef struct { std::string src_path; } getCutFileManage, *pgetCutFileManage; typedef struct { std::string src_path; std::string dst_path; int total; } finishCutFileManage, *pfinishCutFileManage; typedef struct { std::string src_path; std::string en_sdk; int pos; int total; std::string str_addr; std::string str_det_thr; std::string str_cmp_thr; std::string strDevID; int nChannelID; } getsdkHdlManage, *pgetsdkHdlManage; typedef struct { std::string src_path; int pos; } finishSdkHdlManage, *pfinishSdkHdlManage; static std::vector chnString2Vec(std::string str_list) { std::vector result; char *property_list = const_cast(str_list.c_str()); const char *c_Analyse = ","; char *t_property; char *t_save = NULL; t_property = strtok_r(property_list, c_Analyse, &t_save); while (t_property) { std::string str_pro(t_property); result.push_back(atoi(str_pro.c_str())); t_property = strtok_r(t_save, c_Analyse, &t_save); } return result; } #endif // DISPATHDATATYPE_HPP