GrpcPrint/PrintS/PLC/Command/PLCComand.h
2024-03-19 17:45:12 +08:00

17 lines
325 B
C++

#pragma once
#include "PLCReceiver.h"
#include "../../Communication/S7Command.h"
class PLCCommand
{
public:
PLCCommand(PLCReveiver* receiver):m_Receiver(receiver){}
virtual ~PLCCommand(){}
virtual void Execute() {
m_Receiver->AddCmd(m_CtrlCommand);
}
protected:
S7Command* m_CtrlCommand;
PLCReveiver* m_Receiver;
};