30#ifndef PacketDecoder_h
31#define PacketDecoder_h
52 std::map<std::string, std::string> m_headers;
55 std::vector<uint8_t> m_data;
58 std::string m_displayForegroundColor;
61 std::string m_displayBackgroundColor;
64 uint32_t m_displayForegroundColorPacked;
65 uint32_t m_displayBackgroundColorPacked;
67 bool m_packedColorsValid;
71 if(m_packedColorsValid)
73 m_packedColorsValid =
true;
75 m_displayForegroundColorPacked =
ColorFromString(m_displayForegroundColor);
76 m_displayBackgroundColorPacked =
ColorFromString(m_displayBackgroundColor);
90 const std::vector<Packet*>& GetPackets()
93 virtual std::vector<std::string> GetHeaders() =0;
95 virtual bool GetShowDataColumn();
96 virtual bool GetShowImageColumn();
112 PROTO_COLOR_DATA_READ,
113 PROTO_COLOR_DATA_WRITE,
116 PROTO_STANDARD_COLOR_COUNT
119 static std::string m_backgroundColors[PROTO_STANDARD_COLOR_COUNT];
127 { m_packets.clear(); }
132 std::vector<Packet*> m_packets;
Abstract base class for all filter graph blocks which are not physical instrument channels.
Definition: Filter.h:95
Category
Category the filter should be displayed under in the GUI.
Definition: Filter.h:108
Definition: PacketDecoder.h:85
void ClearPackets()
Destroys all currently attached packets.
Definition: PacketDecoder.cpp:80
virtual bool CanMerge(Packet *first, Packet *cur, Packet *next)
Checks if multiple packets can be merged under a single heading in the protocol analyzer view.
Definition: PacketDecoder.cpp:110
virtual Packet * CreateMergedHeader(Packet *pack, size_t i)
Creates a summary packet for one or more merged packets.
Definition: PacketDecoder.cpp:121
void DetachPackets()
Clears the list of packets attached to this filter without freeing memory.
Definition: PacketDecoder.h:126
PacketColor
Standard colors for protocol analyzer lines.
Definition: PacketDecoder.h:107
Definition: PacketDecoder.h:40
int64_t m_offset
Offset of the packet from the start of the capture (femtoseconds)
Definition: PacketDecoder.h:46
int64_t m_len
Duration time of the packet (femtoseconds)
Definition: PacketDecoder.h:49