Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame^] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "CommandHandlerFunctor.hpp" |
| 9 | #include "ISendCounterPacket.hpp" |
| 10 | #include "Packet.hpp" |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace profiling |
| 16 | { |
| 17 | |
| 18 | class RequestCounterDirectoryCommandHandler : public CommandHandlerFunctor |
| 19 | { |
| 20 | |
| 21 | public: |
| 22 | RequestCounterDirectoryCommandHandler(uint32_t packetId, uint32_t version, |
| 23 | ICounterDirectory& counterDirectory, |
| 24 | ISendCounterPacket& sendCounterPacket) |
| 25 | : CommandHandlerFunctor(packetId, version), |
| 26 | m_CounterDirectory(counterDirectory), |
| 27 | m_SendCounterPacket(sendCounterPacket) |
| 28 | {} |
| 29 | |
| 30 | void operator()(const Packet& packet) override; |
| 31 | |
| 32 | |
| 33 | private: |
| 34 | ICounterDirectory& m_CounterDirectory; |
| 35 | ISendCounterPacket& m_SendCounterPacket; |
| 36 | }; |
| 37 | |
| 38 | } // namespace profiling |
| 39 | |
| 40 | } // namespace armnn |
| 41 | |