ArmNN
 22.05
PrintPacketHeaderHandler.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <iostream>
9 #include <sstream>
10 
11 namespace arm
12 {
13 
14 namespace pipe
15 {
16 
17 std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted()
18 {
19  return std::vector<uint32_t>();
20 }
21 
22 void PrintPacketHeaderHandler::HandlePacket(const arm::pipe::Packet& packet)
23 {
24  std::stringstream ss;
25  ss << "Handler Received Outgoing Packet [" << packet.GetPacketFamily() << ":" << packet.GetPacketId() << "]";
26  ss << " Length [" << packet.GetLength() << "]" << std::endl;
27  std::cout << ss.str() << std::endl;
28 };
29 
30 } // namespace pipe
31 
32 } // namespace arm