2024-04-09 16:53:02 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
#include "DataManage/DataHandle.h"
|
|
|
|
|
#include "global.h"
|
|
|
|
|
#include "SystemInfo.h"
|
|
|
|
|
#include "Logger.h"
|
|
|
|
|
#include "Toast.h"
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <conio.h>
|
|
|
|
|
|
2024-04-24 18:12:41 +08:00
|
|
|
|
// 假设你的系统支持ANSI颜色代码
|
|
|
|
|
#define COLOR_RESET "\033[0m"
|
|
|
|
|
#define COLOR_GREEN "\033[32m"
|
|
|
|
|
#define COLOR_YELLOW "\033[33m"
|
2024-04-09 16:53:02 +08:00
|
|
|
|
|
|
|
|
|
class HBDSystem {
|
|
|
|
|
public:
|
|
|
|
|
HBDSystem();
|
|
|
|
|
~HBDSystem();
|
|
|
|
|
|
|
|
|
|
void Usage();
|
|
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
|
|
void Run() { if(m_dataHandle) m_dataHandle->Run(); }
|
|
|
|
|
void Stop() { if(m_dataHandle) m_dataHandle->Stop(); }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void GetVersion();
|
|
|
|
|
private:
|
|
|
|
|
DataHandle* m_dataHandle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|