blob: 12bafbe49bbee8d3587f2449c541e0687369768a [file] [log] [blame]
Francis Murtagh1f7db452019-08-14 09:49:34 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <cstdint>
9
10class CommandHandlerKey
11{
12public:
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
25private:
26 uint32_t m_PacketId;
27 uint32_t m_Version;
28};