wscout::gui::PHYHeader< Exact, Proto > Struct Template Reference

Base clase for PHY header widgets (e.g. More...

#include <wscout_gui_phy_header.hh>

Inheritance diagram for wscout::gui::PHYHeader< Exact, Proto >:

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

List of all members.

Public Types

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

Public Member Functions

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

Static Public Member Functions

static AbstractHeaderallocator ()
static void registerProtocol ()

Protected Member Functions

void setTruncated (bool trunc=true)
void setTime (uint64_t hosttime, uint64_t mactime)
void setRate (float rate)
void setChannel (unsigned channel)
void setSignal (int rssi, int signal, int noise)


Detailed Description

template<class Exact, int Proto>
struct wscout::gui::PHYHeader< Exact, Proto >

Base clase for PHY header widgets (e.g.

Prism/AVS).

See also:
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

template<class Exact, int Proto>
anonymous enum

Enumerator:
default_spacing  Spacing between text labels.

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

Enumerator:
protocol  Protocol identifier.

anonymous enum [inherited]

Enumerator:
header_margin  Margins around headers.


Constructor & Destructor Documentation

template<class E, int P>
wscout::gui::PHYHeader< E, P >::PHYHeader ( const QString &  proto,
QWidget *  parent = 0 
) [inline]


Member Function Documentation

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

Allocate an instance of Exact using new.

Referenced by wscout::gui::HeaderBase< Exact, Proto >::registerProtocol().

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

virtual next_header wscout::gui::AbstractHeader::setup ( const void *  packet,
size_t  caplen,
const Trace trace,
const pcapxx::frame_descriptor &  desc 
) [pure virtual, inherited]

Setup the widget for a specific packet.

This method is purely abstract. You must define it when subclassing.

Parameters:
[in] packet Pointer to the packet's begining.
[in] caplen Number of availabe bytes for this packet.
[in] trace Packet's corresponding gui::Trace.
[in] desc Packet's corresponding frame descriptor.
Returns:
The next header's type and address.
See also:
next_header

Implemented in wscout::gui::AVSHeader, wscout::gui::IEEE80211BeaconHeader, wscout::gui::IEEE80211Header, wscout::gui::IPv4Header, wscout::gui::IPv6Header, wscout::gui::LLCHeader, wscout::gui::PcapHeader, and wscout::gui::PrismHeader.

Referenced by wscout::gui::Packet::setup().

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