LayerRecvEvent Class Reference

This is the event for when a layer receives a packet from one of its adjacent layers. More...

#include <communication_layer.hpp>

Inheritance diagram for LayerRecvEvent:

Event List of all members.

Public Types

typedef boost::shared_ptr<
LayerRecvEvent
LayerRecvEventPtr
 Smart pointer that clients should use.

Public Member Functions

void execute ()
 The code that gets executed for the event.

Static Public Member Functions

static LayerRecvEventPtr create (CommunicationLayer::Directions sendDirection, PacketPtr packet, CommunicationLayerPtr recvingLayer, CommunicationLayerPtr sendingLayer)
 A factory method to ensure that all objects are created via new since we are using smart pointers.

Protected Member Functions

 LayerRecvEvent (CommunicationLayer::Directions sendDirection, PacketPtr packet, CommunicationLayerPtr recvingLayer, CommunicationLayerPtr sendingLayer)
 A constructor.

Detailed Description

This is the event for when a layer receives a packet from one of its adjacent layers.

Definition at line 649 of file communication_layer.hpp.


Member Function Documentation

void LayerRecvEvent::execute (  )  [inline, virtual]

The code that gets executed for the event.

Subclasses can override this to define their own actions.

Implements Event.

Definition at line 669 of file communication_layer.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Dec 12 17:04:40 2006 for rfidsim by  doxygen 1.4.7