GrpcPrint/PrintS/Config/dao/CommunicationCfgDao.h

25 lines
504 B
C
Raw Normal View History

2024-03-19 17:45:12 +08:00
#pragma once
#include "BaseDao.h"
#include "../bean/CommunicationCfg.h"
#include <sstream>
class CommunicationCfgDao :public BaseDao
{
public:
CommunicationCfgDao(SQLite::Database* pdb);
~CommunicationCfgDao();
void CreateTable();
void Find(int mid);
void Save();
void Export(stringstream &sql);
map<string, CommunicationCfg*>* GetCommunicationCfg() { return &m_CommunicationCfgMap; }
private:
void InitBeforeFind(int mid);
private:
map<string, CommunicationCfg*> m_CommunicationCfgMap;
};