GrpcPrint/PrintS/Controller/Controller.h

49 lines
1.1 KiB
C
Raw Normal View History

2024-03-25 13:22:32 +08:00
#pragma once
#include "../Machine/Machine.h"
#include "../PLC/MachineCtrl.h"
#include "../PLC/CoreCommunication.h"
#include "../Config/ConfigManager.h"
2024-03-26 10:33:00 +08:00
#include "../Communication/ComServer.h"
#include "../remote/RemoteClient.h"
2024-04-16 13:32:05 +08:00
#include "../Purifier/BasePurifier.h"
2024-04-16 17:36:27 +08:00
#include <thread>
2024-05-15 17:59:04 +08:00
#include "../Registration/Registration.h"
2024-03-25 13:22:32 +08:00
2024-04-10 16:15:33 +08:00
class Controller {
2024-03-25 13:22:32 +08:00
public:
2024-04-10 16:15:33 +08:00
Controller();
~Controller();
2024-03-25 13:22:32 +08:00
void Init();
2024-05-11 17:43:38 +08:00
void StartSend(); //发送辅机的参数
2024-04-16 17:36:27 +08:00
void StopSend();
2024-04-23 13:41:16 +08:00
void UpdateFile(const string& filePath);
2024-04-07 17:09:01 +08:00
public:
2024-03-25 13:22:32 +08:00
Machine* m_Machine;
CoreCommunication* m_CoreCommunication;
PLCAxis* m_Axis;
StateCtrlWrapper* m_StateCtrlWrapper;
SysParamWrapper* m_SysParamWrapper;
AxisRecordWrapper* m_AxisRecordWrapper;
SignalStateWrapper* m_SignalStateWrapper;
2024-03-26 10:33:00 +08:00
MachineCtrl* m_MachineCtrl;
RemoteClient* m_RemoteClient;
ComServer* m_ComServer;
2024-04-16 13:32:05 +08:00
BasePurifier* m_Purifier;
2024-03-25 13:22:32 +08:00
2024-04-23 13:41:16 +08:00
JobController m_jobController;
2024-04-07 17:09:01 +08:00
ScannerCtrl* m_ScannerCtrl;
2024-04-16 13:32:05 +08:00
MachineCfg* m_MachineCfg;
2024-05-17 10:57:17 +08:00
ExtCfg* m_ExtCfg;
2024-04-16 17:36:27 +08:00
2024-05-15 17:59:04 +08:00
Registration* m_reg;
2024-05-17 10:57:17 +08:00
HBDCamera* m_Camera;
2024-04-16 17:36:27 +08:00
private:
bool m_sendTdExitFlag;
thread m_sendParamThread;
2024-03-25 13:22:32 +08:00
};