LAPTOP-SNT8I5JK\Boounion
2025-03-29 d06ab39efafbcb2a7b1ec4cb83e18fa3485789a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "sqlite3.h"
#include "CPanel.h"
#include <list>
 
class CGB2860SQLite
{
public:
    CGB2860SQLite();
    ~CGB2860SQLite();
 
public:
    void setDbFilepath(const char* pszFilepath);
    int init(std::string& strError);
    int term();
    int insertPanel(CPanel* pPanel, std::string& strError);
    int getPanelList(const char* pszKeyword, int nSearchFlag,
        int dtFlag, const char* pszStartTime, const char* pszEndTime,
        std::list<CPanel*>& list, std::string& strError);
    int getPanelWithPanelId(const char* pszPanelId, CPanel*& pPanel, std::string& strError);
 
private:
    std::string m_strDbFilepath;
    sqlite3* m_db;
};