wscout::gui::PcapHeader Struct Reference

PCAP header widget. More...

#include <wscout_gui_pcap_header.hh>

Inheritance diagram for wscout::gui::PcapHeader:

wscout::gui::HeaderBase< Exact, Proto > wscout::gui::AbstractHeader wscout::gui::HeaderFrame

List of all members.

Public Types

enum  { protocol = Proto }
typedef std::pair
< protocol::id, const void * > 
next_header
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 pcapxx::frame_descriptor &desc)
QBoxLayout * layout ()

Static Public Member Functions

static next_header nextHeader (const Trace &t, const pcapxx::frame_descriptor &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


Member Enumeration Documentation

template<class Exact, unsigned Proto>
anonymous enum [inherited]

Enumerator:
protocol  Protocol identifier.

anonymous enum [inherited]

Enumerator:
header_margin  Margins around headers.


Constructor & Destructor Documentation

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

Default constructor.


Member Function Documentation

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

Setup the widget for a given trace and packet.

Implements wscout::gui::AbstractHeader.

PcapHeader::next_header wscout::gui::PcapHeader::nextHeader ( const Trace t,
const pcapxx::frame_descriptor &  d 
) [inline, static]

Retrieve the next header's description.

template<class Exact, unsigned Proto>
AbstractHeader * wscout::gui::HeaderBase< Exact, Proto >::allocator (  )  [inline, static, inherited]

Allocate an instance of Exact using new.

template<class Exact, unsigned Proto>
void wscout::gui::HeaderBase< Exact, Proto >::registerProtocol (  )  [inline, static, inherited]

Register allocator() for protocol.

QBoxLayout * wscout::gui::HeaderFrame::layout (  )  [inline, inherited]

This protocol header widget's layout.


The documentation for this struct was generated from the following files:
Generated on Wed Jan 30 19:02:27 2008 for WScout by  doxygen 1.5.4