wifi::time_converter< PhyHeaderType, Bottom > Struct Template Reference

Convert a time_tracker microsecond count to various PCAP and PHY fields. More...

#include <wipal/wifi/time_converter.hh>

Inheritance diagram for wifi::time_converter< PhyHeaderType, Bottom >:

tool::static_base< Bottom >

List of all members.

Public Types

typedef struct timeval pcap_time_type
typedef PhyHeaderType::time_type phy_time_type
Static hierarchies related types
typedef HIDDEN exact_type
typedef tool::static_base
< exact_type
super_type

Public Member Functions

 time_converter (const pcap_time_type &local_pcap_time, const phy_time_type &local_phy_time, const tool::microseconds &global_time)
time_values operator() (const tool::microseconds &global_time) const
Downcast methods
const exact_typeexact () const
exact_typeexact ()
const exact_typeexact_ptr () const
exact_typeexact_ptr ()

Classes

struct  time_values
 Hold time_converter 's conversion results. More...


Detailed Description

template<class PhyHeaderType, class Bottom = tool::bottom>
struct wifi::time_converter< PhyHeaderType, Bottom >

Convert a time_tracker microsecond count to various PCAP and PHY fields.

Use the time_tracker class to have a global timer that tracks frame arrivals. Use this class to convert time_tracker values back into various time fields (e.g. PCAP time, Prism mactime, etc.).

In order to work properly, this class must be able to map a reference microsecond count to reference time fields (PCAP time, host time, MAC time). Thus its constructor.

See also:
time_tracker.

Member Typedef Documentation

template<class PhyHeaderType, class Bottom = tool::bottom>
typedef HIDDEN wifi::time_converter< PhyHeaderType, Bottom >::exact_type

Exact type for this template instanciation.

See also:
static_base

Reimplemented from tool::static_base< Bottom >.

template<class PhyHeaderType, class Bottom = tool::bottom>
typedef struct timeval wifi::time_converter< PhyHeaderType, Bottom >::pcap_time_type [read]

Type of PCAP headers' timing information.

template<class PhyHeaderType, class Bottom = tool::bottom>
typedef PhyHeaderType::time_type wifi::time_converter< PhyHeaderType, Bottom >::phy_time_type

Type of PHY headers' timing information.


Constructor & Destructor Documentation

template<class PHT, class Bottom>
wifi::time_converter< PHT, Bottom >::time_converter ( const pcap_time_type local_pcap_time,
const phy_time_type local_phy_time,
const tool::microseconds global_time 
) [inline]

Construct a converter for some given reference times.


Member Function Documentation

template<class PHT, class Bottom>
time_converter< PHT, Bottom >::time_values wifi::time_converter< PHT, Bottom >::operator() ( const tool::microseconds global_time  )  const [inline]

template<class Bottom>
const static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact (  )  const [inline, inherited]

template<class Bottom>
static_base< Bottom >::exact_type & tool::static_base< Bottom >::exact (  )  [inline, inherited]

Safely downcast to the exact type as a non-const reference.

template<class Bottom>
const static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr (  )  const [inline, inherited]

Safely downcast to the exact type as a const pointer.

Referenced by pcapxx::frame_descriptor< PCAPDescriptor >::frame_descriptor().

template<class Bottom>
static_base< Bottom >::exact_type * tool::static_base< Bottom >::exact_ptr (  )  [inline, inherited]

Safely downcast to the exact type as a non-const pointer.


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

Generated on Thu Jul 31 16:39:04 2008 for wipal by  doxygen 1.5.6