wscout::gui::IPv4Header Struct Reference

IPv4 header widget. More...

#include <wscout_gui_ip_header.hh>

Inheritance diagram for wscout::gui::IPv4Header:

wscout::gui::IPHeader< ExactIPHeader, Protocol > wscout::gui::HeaderBase< ExactIPHeader, Protocol > wscout::gui::AbstractHeader wscout::gui::HeaderFrame

List of all members.

Public Types

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

Public Member Functions

 IPv4Header (QWidget *parent=0)
virtual next_header setup (const void *header, size_t caplen, const Trace &trace, const pcapxx::frame_descriptor &desc)
QBoxLayout * layout ()

Static Public Member Functions

static AbstractHeaderallocator ()
static void registerProtocol ()

Protected Attributes

QLabel srcDst_


Detailed Description

IPv4 header widget.

See also:
IPHeader, AbstractHeader, HeaderBase

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

anonymous enum [inherited]

Enumerator:
header_margin  Margins around headers.


Constructor & Destructor Documentation

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

Default constructor.

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


Member Function Documentation

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

Abstract method definition from AbstractHeader.

Implements wscout::gui::AbstractHeader.

References wscout::protocol::UNKNOWN.

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

Allocate an instance of Exact using new.

static void wscout::gui::HeaderBase< ExactIPHeader , Proto >::registerProtocol (  )  [static, inherited]

Register allocator() for protocol.

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


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

Generated on Fri Mar 28 14:53:38 2008 for WScout by  doxygen 1.5.5