Files
energy_storage/src/app/Application.h

28 lines
429 B
C
Raw Normal View History

2025-05-19 09:54:33 +08:00
#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_;
};