wscout::gui::PcapHeader Struct Reference

PCAP header widget. More...

#include <wscout_gui_pcap_header.hh>

Inheritance diagram for wscout::gui::PcapHeader:
wscout::gui::HeaderBase< PcapHeader, protocol::PCAP > wscout::gui::AbstractHeader wscout::gui::HeaderFrame

List of all members.

Public Types

enum  
typedef std::pair
< protocol::id, const void * > 
next_header
typedef
wpl::pcap::indexed_file::packet 
packet
enum  { header_margin = 2 }

Public Member Functions

 PcapHeader (QWidget *parent=0)
virtual next_header setup (const void *bytes, size_t caplen, const Trace &trace, const packet &desc)
QBoxLayout * layout ()

Static Public Member Functions

static next_header nextHeader (const Trace &t, const packet &d)
static AbstractHeaderallocator ()
static void registerProtocol ()

Detailed Description

PCAP header widget.


Member Typedef Documentation

typedef std::pair<protocol::id, const void*> wscout::gui::AbstractHeader::next_header [inherited]

Identify this header's next header.

The first element specifies the next header's protocol. The second one points to the next header's beginning of data.

If there is no next protocol, use protocol::NONE. If the next protocol is unknown, use protocol::UNKNOWN.

See also:
protocol::id
typedef wpl::pcap::indexed_file ::packet wscout::gui::AbstractHeader::packet [inherited]

Frame descriptor type used by setup().


Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
header_margin 

Margins around headers.


Constructor & Destructor Documentation

wscout::gui::PcapHeader::PcapHeader ( QWidget *  parent = 0  )  [inline]

Default constructor.

References wscout::gui::HeaderFrame::layout().


Member Function Documentation

static AbstractHeader* wscout::gui::HeaderBase< PcapHeader , Proto >::allocator (  )  [static, inherited]

Allocate an instance of Exact using new.

QBoxLayout * wscout::gui::HeaderFrame::layout (  )  [inline, inherited]
PcapHeader::next_header wscout::gui::PcapHeader::nextHeader ( const Trace t,
const packet d 
) [inline, static]
static void wscout::gui::HeaderBase< PcapHeader , Proto >::registerProtocol (  )  [static, inherited]

Register allocator() for protocol.

PcapHeader::next_header wscout::gui::PcapHeader::setup ( const void *  bytes,
size_t  caplen,
const Trace trace,
const packet desc 
) [virtual]

Setup the widget for a given trace and packet.

Implements wscout::gui::AbstractHeader.

References nextHeader().


The documentation for this struct was generated from the following files:

Generated by  doxygen 1.6.2