INET Framework for OMNeT++/OMNEST
PacketDrillPacket Class Reference

#include <PacketDrillUtils.h>

Public Member Functions

 PacketDrillPacket ()
 
 ~PacketDrillPacket ()
 
enum direction_t getDirection () const
 
void setDirection (enum direction_t dir)
 
cPacket * getInetPacket ()
 
void setInetPacket (cPacket *pkt)
 

Private Attributes

cPacket * inetPacket
 
enum direction_t direction
 

Constructor & Destructor Documentation

PacketDrillPacket::PacketDrillPacket ( )
109 {
110  inetPacket = nullptr;
112 }
Definition: PacketDrillUtils.h:184
enum direction_t direction
Definition: PacketDrillUtils.h:473
cPacket * inetPacket
Definition: PacketDrillUtils.h:472
PacketDrillPacket::~PacketDrillPacket ( )
115 {
116  if (inetPacket)
117  delete inetPacket;
118 }
cPacket * inetPacket
Definition: PacketDrillUtils.h:472

Member Function Documentation

enum direction_t PacketDrillPacket::getDirection ( ) const
inline

Referenced by inet::PacketDrillApp::runEvent(), and yyparse().

476 { return direction; };
enum direction_t direction
Definition: PacketDrillUtils.h:473
cPacket* PacketDrillPacket::getInetPacket ( )
inline
478 { return inetPacket; };
cPacket * inetPacket
Definition: PacketDrillUtils.h:472
void PacketDrillPacket::setDirection ( enum direction_t  dir)
inline

Referenced by yyparse().

477 { direction = dir; };
enum direction_t direction
Definition: PacketDrillUtils.h:473
void PacketDrillPacket::setInetPacket ( cPacket *  pkt)
inline

Referenced by yyparse().

479 { inetPacket = pkt->dup(); delete pkt;};
cPacket * inetPacket
Definition: PacketDrillUtils.h:472

Member Data Documentation

enum direction_t PacketDrillPacket::direction
private
cPacket* PacketDrillPacket::inetPacket
private

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