aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CommandHandlerKey.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/CommandHandlerKey.hpp')
-rw-r--r--src/profiling/CommandHandlerKey.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/profiling/CommandHandlerKey.hpp b/src/profiling/CommandHandlerKey.hpp
new file mode 100644
index 0000000000..12bafbe49b
--- /dev/null
+++ b/src/profiling/CommandHandlerKey.hpp
@@ -0,0 +1,28 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <cstdint>
+
+class CommandHandlerKey
+{
+public:
+ CommandHandlerKey(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {};
+
+ uint32_t GetPacketId() const;
+ uint32_t GetVersion() const;
+
+ bool operator< (const CommandHandlerKey& rhs) const;
+ bool operator> (const CommandHandlerKey& rhs) const;
+ bool operator<=(const CommandHandlerKey& rhs) const;
+ bool operator>=(const CommandHandlerKey& rhs) const;
+ bool operator==(const CommandHandlerKey& rhs) const;
+ bool operator!=(const CommandHandlerKey& rhs) const;
+
+private:
+ uint32_t m_PacketId;
+ uint32_t m_Version;
+};