增加了数据库功能,采用直接编译源码的方式,不使用动态库链接
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef SQLITE_H
|
||||
#define SQLITE_H
|
||||
#include "sqlite3.h"
|
||||
#include <string>
|
||||
#include "../pmSysvariable.h"
|
||||
|
||||
class SQLite
|
||||
{
|
||||
private:
|
||||
sqlite3* m_db;
|
||||
public:
|
||||
std::string m_dbPath;
|
||||
SQLite(const std::string& dbName);
|
||||
~SQLite();
|
||||
|
||||
//创建表
|
||||
bool createTable();
|
||||
bool createTable(const std::string& tableName, const std::string& columns);
|
||||
|
||||
// 插入数据函数
|
||||
bool insertData(ccuState data);
|
||||
bool insertData(disHighVolBusState data);
|
||||
bool insertData(disHighAVolBusState data);
|
||||
bool insertData(disLowMainBusState data);
|
||||
bool insertData(disLowBusState data);
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user