53 lines
1.0 KiB
C
53 lines
1.0 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
#include "ScanCfg.h"
|
|||
|
#include "FixPointCfg.h"
|
|||
|
#include "IOCfg.h"
|
|||
|
using namespace std;
|
|||
|
|
|||
|
struct CardSerialPair {
|
|||
|
int cardNo;
|
|||
|
unsigned int serialNo;
|
|||
|
};
|
|||
|
|
|||
|
class ScannerControlCfg
|
|||
|
{
|
|||
|
public:
|
|||
|
ScannerControlCfg();
|
|||
|
~ScannerControlCfg();
|
|||
|
static void Generate(vector<string>& ins);
|
|||
|
string GetUpdateSql();
|
|||
|
void Init();
|
|||
|
ScanParamCfg* GetScanParamCfg(string str);
|
|||
|
public:
|
|||
|
int m_SeqNo;
|
|||
|
int m_ControlNo;
|
|||
|
int m_SerialNo;
|
|||
|
int m_ControlType;
|
|||
|
string m_CardName;
|
|||
|
string m_CardIP;
|
|||
|
bool m_IsEnable; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
bool m_HadAssign;
|
|||
|
bool 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;
|
|||
|
|
|||
|
};
|
|||
|
|