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 | |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | namespace profiling |
| 14 | { |
| 15 | |
Francis Murtagh | 11f99b4 | 2019-08-16 11:28:52 +0100 | [diff] [blame] | 16 | #pragma once |
| 17 | |
| 18 | class CommandHandlerFunctor |
| 19 | { |
| 20 | public: |
| 21 | CommandHandlerFunctor(uint32_t packetId, uint32_t version) : m_PacketId(packetId), m_Version(version) {}; |
| 22 | |
| 23 | uint32_t GetPacketId() const; |
| 24 | uint32_t GetVersion() const; |
| 25 | |
| 26 | virtual void operator()(const Packet& packet) {}; |
| 27 | |
| 28 | private: |
| 29 | uint32_t m_PacketId; |
| 30 | uint32_t m_Version; |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } // namespace profiling |
| 34 | |
| 35 | } // namespace armnn |