blob: 2e1e05fd32fb77ba099695d06b6717f4aae65c9f [file] [log] [blame]
Francis Murtagh11f99b42019-08-16 11:28:52 +01001//
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-Tare898db92019-08-22 12:56:34 +010010namespace armnn
11{
12
13namespace profiling
14{
15
Francis Murtagh11f99b42019-08-16 11:28:52 +010016#pragma once
17
18class CommandHandlerFunctor
19{
20public:
Matteo Martincighc2728f92019-10-07 12:35:21 +010021 CommandHandlerFunctor(uint32_t packetId, uint32_t version)
22 : m_PacketId(packetId)
23 , m_Version(version)
24 {}
Francis Murtagh11f99b42019-08-16 11:28:52 +010025
26 uint32_t GetPacketId() const;
27 uint32_t GetVersion() const;
28
Matteo Martincighc2728f92019-10-07 12:35:21 +010029 virtual void operator()(const Packet& packet) {}
Francis Murtagh11f99b42019-08-16 11:28:52 +010030
31private:
32 uint32_t m_PacketId;
33 uint32_t m_Version;
Aron Virginas-Tare898db92019-08-22 12:56:34 +010034};
35
36} // namespace profiling
37
38} // namespace armnn