18 lines
272 B
C++
18 lines
272 B
C++
#pragma once
|
|
#include "PLCComand.h"
|
|
|
|
class PLCInvoker
|
|
{
|
|
public:
|
|
PLCInvoker(){}
|
|
virtual ~PLCInvoker(){}
|
|
void SetCommand(PLCCommand* command) { m_Command = command; }
|
|
void Call()
|
|
{
|
|
if (!m_Command)return;
|
|
m_Command->Execute();
|
|
}
|
|
|
|
private:
|
|
PLCCommand* m_Command;
|
|
}; |