17 lines
325 B
C
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;
|
||
|
};
|