2024-05-22 15:58:54 +08:00
|
|
|
|
#pragma once
|
2024-03-19 17:45:12 +08:00
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "ScanCfg.h"
|
|
|
|
|
#include "FixPointCfg.h"
|
|
|
|
|
#include "IOCfg.h"
|
2024-06-04 14:08:12 +08:00
|
|
|
|
#include "../Controller/Base.h"
|
2024-06-27 10:56:50 +08:00
|
|
|
|
#include "../protobuf/stream.pb.h"
|
|
|
|
|
|
2024-03-19 17:45:12 +08:00
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
struct CardSerialPair {
|
|
|
|
|
int cardNo;
|
|
|
|
|
unsigned int serialNo;
|
2024-05-22 15:58:54 +08:00
|
|
|
|
string cardIP;
|
2024-03-19 17:45:12 +08:00
|
|
|
|
};
|
|
|
|
|
|
2024-06-04 14:08:12 +08:00
|
|
|
|
class ScannerControlCfg: public Base
|
2024-03-19 17:45:12 +08:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ScannerControlCfg();
|
|
|
|
|
~ScannerControlCfg();
|
|
|
|
|
static void Generate(vector<string>& ins);
|
|
|
|
|
string GetUpdateSql();
|
|
|
|
|
void Init();
|
|
|
|
|
ScanParamCfg* GetScanParamCfg(string str);
|
2024-06-27 10:56:50 +08:00
|
|
|
|
|
|
|
|
|
void SetScannerCtrlCfg(stream::ScannerCrtlCfgData* );
|
2024-03-19 17:45:12 +08:00
|
|
|
|
public:
|
2024-06-25 15:25:46 +08:00
|
|
|
|
//IntData* m_Index;
|
2024-06-27 10:56:50 +08:00
|
|
|
|
int m_SeqNo; //编号 ConfigManager中的m_ScannerControlCfgMap的key
|
|
|
|
|
int m_ControlNo;
|
|
|
|
|
int m_SerialNo;
|
|
|
|
|
int m_ControlType;
|
|
|
|
|
string m_CardName;
|
|
|
|
|
string m_CardIP;
|
|
|
|
|
bool m_IsEnable; //是否启动
|
|
|
|
|
bool m_HadAssign;
|
|
|
|
|
bool m_HadMatch;
|
2024-06-05 17:02:17 +08:00
|
|
|
|
|
2024-03-19 17:45:12 +08:00
|
|
|
|
ScanCfgWrapper m_ScanCfgWrapper;
|
2024-06-27 10:56:50 +08:00
|
|
|
|
FixPointWrapper m_FixPointWrapper; //添加一个函数,不传
|
2024-03-19 17:45:12 +08:00
|
|
|
|
|
2024-06-04 14:08:12 +08:00
|
|
|
|
IOCfg* m_LaserRed; //不传了
|
|
|
|
|
IOCfg* m_LaserEnable; //不传了
|
|
|
|
|
IOCfg* m_LaserStart; //不传了
|
2024-03-19 17:45:12 +08:00
|
|
|
|
public:
|
|
|
|
|
static const string TABLE_NAME;
|
|
|
|
|
static const string FIELD_SEQ_NO;
|
|
|
|
|
static const string FIELD_CONTROL_NO;
|
|
|
|
|
static const string FIELD_SERIAL_NO;
|
|
|
|
|
static const string FIELD_CONTROL_TYPE;
|
|
|
|
|
static const string FIELD_CARD_NAME;
|
|
|
|
|
static const string FIELD_CARD_IP;
|
|
|
|
|
static const string FIELD_IS_ENABLE;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|