#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; };