25 lines
504 B
C
25 lines
504 B
C
|
#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;
|
||
|
};
|
||
|
|