1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include "interfaces/subscriber.hpp" #include <cstddef> class ICommand : public ISubscriber<std::nullptr_t> { public: virtual ~ICommand() = default; virtual void execute() noexcept = 0; void update(const std::nullptr_t & /*context*/) noexcept override { execute(); }; };