57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "ScanCfg.h"
|
|
#include "FixPointCfg.h"
|
|
#include "IOCfg.h"
|
|
#include "../Controller/Base.h"
|
|
using namespace std;
|
|
|
|
struct CardSerialPair {
|
|
int cardNo;
|
|
unsigned int serialNo;
|
|
string cardIP;
|
|
};
|
|
|
|
class ScannerControlCfg: public Base
|
|
{
|
|
public:
|
|
ScannerControlCfg();
|
|
~ScannerControlCfg();
|
|
static void Generate(vector<string>& ins);
|
|
string GetUpdateSql();
|
|
void Init();
|
|
ScanParamCfg* GetScanParamCfg(string str);
|
|
public:
|
|
IntData* m_Index; //编号 配合ConfigManager中的map
|
|
IntData* m_SeqNo;
|
|
IntData* m_ControlNo;
|
|
IntData* m_SerialNo;
|
|
IntData* m_ControlType;
|
|
StrData* m_CardName;
|
|
StrData* m_CardIP;
|
|
BoolData* m_IsEnable; //是否启动
|
|
BoolData* m_HadAssign;
|
|
BoolData* m_HadMatch;
|
|
|
|
|
|
ScanCfgWrapper m_ScanCfgWrapper;
|
|
FixPointWrapper m_FixPointWrapper;
|
|
|
|
IOCfg* m_LaserRed; //不传了
|
|
IOCfg* m_LaserEnable; //不传了
|
|
IOCfg* m_LaserStart; //不传了
|
|
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;
|
|
|
|
};
|
|
|