Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EthernetIIFrame Class Reference

#include <EtherFrame_m.h>

Inheritance diagram for EthernetIIFrame:

EtherFrame List of all members.

Public Methods

 EthernetIIFrame (const char *name=NULL, int kind=0)
 EthernetIIFrame (const EthernetIIFrame &other)
virtual ~EthernetIIFrame ()
EthernetIIFrame & operator= (const EthernetIIFrame &other)
virtual cObject * dup () const
virtual int getEtherType () const
virtual void setEtherType (int etherType_var)

Protected Attributes

int etherType_var

Constructor & Destructor Documentation

EthernetIIFrame::EthernetIIFrame const char *    name = NULL,
int    kind = 0
 

Definition at line 193 of file EtherFrame_m.cc.

References etherType_var.

Referenced by dup().

00193                                                            : EtherFrame(name,kind)
00194 {
00195     unsigned int i;
00196     this->etherType_var = 0;
00197 }

EthernetIIFrame::EthernetIIFrame const EthernetIIFrame &    other
 

Definition at line 199 of file EtherFrame_m.cc.

References operator=().

00199                                                              : EtherFrame()
00200 {
00201     unsigned int i;
00202     setName(other.name());
00203     operator=(other);
00204 }

EthernetIIFrame::~EthernetIIFrame   [virtual]
 

Definition at line 206 of file EtherFrame_m.cc.

00207 {
00208     unsigned int i;
00209 }


Member Function Documentation

virtual cObject* EthernetIIFrame::dup   const [inline, virtual]
 

Reimplemented from EtherFrame.

Definition at line 46 of file EtherFrame_m.h.

References EthernetIIFrame().

00046 {return new EthernetIIFrame(*this);}

int EthernetIIFrame::getEtherType   const [virtual]
 

Definition at line 220 of file EtherFrame_m.cc.

References etherType_var.

Referenced by EthernetIIFrameDescriptor::getFieldAsString().

00221 {
00222     return etherType_var;
00223 }

EthernetIIFrame & EthernetIIFrame::operator= const EthernetIIFrame &    other
 

Definition at line 211 of file EtherFrame_m.cc.

References etherType_var, and EtherFrame::operator=().

Referenced by EthernetIIFrame().

00212 {
00213     if (this==&other) return *this;
00214     unsigned int i;
00215     EtherFrame::operator=(other);
00216     this->etherType_var = other.etherType_var;
00217     return *this;
00218 }

void EthernetIIFrame::setEtherType int    etherType_var [virtual]
 

Definition at line 225 of file EtherFrame_m.cc.

References etherType_var.

Referenced by EtherEncap::processPacketFromHigherLayer(), and EthernetIIFrameDescriptor::setFieldAsString().

00226 {
00227     this->etherType_var = etherType_var;
00228 }


Member Data Documentation

int EthernetIIFrame::etherType_var [protected]
 

Definition at line 40 of file EtherFrame_m.h.

Referenced by EthernetIIFrame(), getEtherType(), operator=(), and setEtherType().


The documentation for this class was generated from the following files:
Generated on Sat May 15 20:30:47 2004 for Ethernet by doxygen1.2.17