mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
28 lines
429 B
C++
28 lines
429 B
C++
#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_;
|
|
}; |