39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
#pragma once
|
|
#include "BaseDao.h"
|
|
#include "../bean/ScanCfg.h"
|
|
#include "../bean/ScanParamCfg.h"
|
|
#include "../bean/ScanTestCfg.h"
|
|
#include "../bean/CorrectParamCfg.h"
|
|
#include "../bean/SkyWritingCfg.h"
|
|
#include <sstream>
|
|
|
|
class ScanCfgDao :public BaseDao
|
|
{
|
|
public:
|
|
ScanCfgDao(SQLite::Database* pdb);
|
|
~ScanCfgDao();
|
|
void CreateTable();
|
|
void Find(int cno, ScanCfgWrapper& cfg);
|
|
void Save(int cno, ScanCfgWrapper& cfg);
|
|
void Export(int cno, ScanCfgWrapper& cfg, stringstream& ss);
|
|
|
|
private:
|
|
void FindValue(int cno,string configname, map<string, string>& valueMap);
|
|
|
|
void FindScanParamCfg(int cno, ScanParamCfg& cfg);
|
|
void FindScanTestCfg(int cno, ScanTestCfg& cfg);
|
|
void FindCorrectParamCfg(int cno, CorrectParamCfg& cfg);
|
|
void FindSkyWritingCfg(int cno, SkyWritingCfg& cfg);
|
|
|
|
void SaveParamCfg(int cno, ScanParamCfg& cfg);
|
|
void SaveScanTestCfg(int cno, ScanTestCfg& cfg);
|
|
void SaveCorrectCfg(int cno, CorrectParamCfg& cfg);
|
|
void SaveSkyWritingCfg(int cno, SkyWritingCfg& cfg);
|
|
|
|
void ExportParamCfg(int cno, ScanParamCfg& cfg, stringstream &sql);
|
|
void ExportScanTestCfg(int cno, ScanTestCfg& cfg, stringstream &sql);
|
|
void ExportCorrectCfg(int cno, CorrectParamCfg& cfg, stringstream &sql);
|
|
void ExportSkyWritingCfg(int cno, SkyWritingCfg& cfg, stringstream &sql);
|
|
};
|
|
|