Francis Murtagh | 1f7db45 | 2019-08-14 09:49:34 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <cstdint> |
| 9 | |
| 10 | class CommandHandlerKey |
| 11 | { |
| 12 | public: |
| 13 | CommandHandlerKey(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {}; |
| 14 | |
| 15 | uint32_t GetPacketId() const; |
| 16 | uint32_t GetVersion() const; |
| 17 | |
| 18 | bool operator< (const CommandHandlerKey& rhs) const; |
| 19 | bool operator> (const CommandHandlerKey& rhs) const; |
| 20 | bool operator<=(const CommandHandlerKey& rhs) const; |
| 21 | bool operator>=(const CommandHandlerKey& rhs) const; |
| 22 | bool operator==(const CommandHandlerKey& rhs) const; |
| 23 | bool operator!=(const CommandHandlerKey& rhs) const; |
| 24 | |
| 25 | private: |
| 26 | uint32_t m_PacketId; |
| 27 | uint32_t m_Version; |
| 28 | }; |