#include <StreamMetadataCommandHandler.hpp>
◆ StreamMetadataCommandHandler()
- Parameters
-
familyId | The family of the packets this handler will service |
packetId | The id of packets this handler will process |
version | The version of that id |
quietOperation | Optional parameter to turn off printouts. This is useful for unit tests |
Definition at line 36 of file StreamMetadataCommandHandler.hpp.
41 , m_QuietOperation(quietOperation)
CommandHandlerFunctor(uint32_t familyId, uint32_t packetId, uint32_t version)
◆ operator()()
Implements CommandHandlerFunctor.
Definition at line 23 of file StreamMetadataCommandHandler.cpp.
34 ss <<
"Stream metadata packet received" << std::endl << std::endl;
36 ss <<
"Pipe magic: " << m_PipeMagic << std::endl;
37 ss <<
"Stream metadata version: " << m_StreamMetadataVersion << std::endl;
38 ss <<
"Max data len: " << m_MaxDataLen << std::endl;
39 ss <<
"Pid: " << m_Pid << std::endl;
40 ss <<
"Software info: " << m_SoftwareInfo << std::endl;
41 ss <<
"Hardware version: " << m_HardwareVersion << std::endl;
42 ss <<
"Software version: " << m_SoftwareVersion << std::endl;
43 ss <<
"Process name: " << m_ProcessName << std::endl;
44 ss <<
"Packet versions: " << m_PacketVersionTable.size() << std::endl;
46 for (
const auto& packetVersion : m_PacketVersionTable)
48 ss <<
"-----------------------" << std::endl;
49 ss <<
"Packet family: " << packetVersion.m_PacketFamily << std::endl;
50 ss <<
"Packet id: " << packetVersion.m_PacketId << std::endl;
51 ss <<
"Packet version: " << packetVersion.m_PacketVersion << std::endl;
54 std::cout << ss.str() << std::endl;
The documentation for this class was generated from the following files: