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