19 lines
444 B
C
19 lines
444 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
class sqlite3;
|
||
|
|
||
|
class OpDatabase
|
||
|
{
|
||
|
public:
|
||
|
OpDatabase();
|
||
|
~OpDatabase();
|
||
|
|
||
|
void CloseDatabase();
|
||
|
bool OpenDatabase(const std::string& db_file_path);
|
||
|
void InsertMessage(const std::string& ts, const std::string& msg_type, const std::string& fsu, const std::string& content,int topic,int dev_id);
|
||
|
bool QueryUser(const std::string& uname, const std::string& passwd);
|
||
|
protected:
|
||
|
sqlite3* m_pSqliteDb;
|
||
|
private:
|
||
|
};
|