Francis Murtagh | 11f99b4 | 2019-08-16 11:28:52 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include "Packet.hpp" |
| 7 | |
| 8 | #include <cstdint> |
| 9 | |
| 10 | #pragma once |
| 11 | |
| 12 | class CommandHandlerFunctor |
| 13 | { |
| 14 | public: |
| 15 | CommandHandlerFunctor(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {}; |
| 16 | |
| 17 | uint32_t GetPacketId() const; |
| 18 | uint32_t GetVersion() const; |
| 19 | |
| 20 | virtual void operator()(const Packet& packet) {}; |
| 21 | |
| 22 | private: |
| 23 | uint32_t m_PacketId; |
| 24 | uint32_t m_Version; |
| 25 | }; |