mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
上传项目代码
This commit is contained in:
28
src/app/Application.h
Normal file
28
src/app/Application.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <thread>
|
||||
#include "common/Logger.h"
|
||||
|
||||
#include "Operator.h"
|
||||
|
||||
class Application
|
||||
{
|
||||
public:
|
||||
static Application& instance()
|
||||
{
|
||||
static Application app;
|
||||
return app;
|
||||
}
|
||||
|
||||
void init();
|
||||
bool isQuit() { return isQuit_; }
|
||||
Operator& getOperator() { return op_; }
|
||||
|
||||
void runThreadMain();
|
||||
|
||||
private:
|
||||
bool isQuit_ = false;
|
||||
|
||||
// 登录的管理员信息
|
||||
Operator op_;
|
||||
};
|
||||
Reference in New Issue
Block a user