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

cmessage30.h File Reference

#include <omnetpp.h>

Go to the source code of this file.

Compounds

class  cMessage30
class  cPolymorphic

Defines

#define M30(p)   check_and_cast<cMessage30*>(p)

Functions

template<class T> T check_and_cast (cPolymorphic *p)


Define Documentation

#define M30      check_and_cast<cMessage30*>(p)
 

Definition at line 76 of file cmessage30.h.

Referenced by EtherLLC::handleDeregisterSAP(), EtherLLC::handleRegisterSAP(), EtherLLC::handleSendPause(), EtherEncap::handleSendPause(), EtherLLC::processFrameFromMAC(), EtherEncap::processFrameFromMAC(), EtherLLC::processPacketFromHigherLayer(), EtherEncap::processPacketFromHigherLayer(), and EtherAppSrv::sendPacket().


Function Documentation

template<class T>
T check_and_cast cPolymorphic   p
 

Definition at line 49 of file cmessage30.h.

References cPolymorphic::className(), and cPolymorphic::fullPath().

00050 {
00051     if (!p)
00052         throw new cException("check_and_cast(): cannot cast NULL pointer to type '%s'",opp_typename(typeid(T)));
00053     T ret = dynamic_cast<T>(p);
00054     if (!ret)
00055         throw new cException("check_and_cast(): cannot cast (%s *)%s to type '%s'",p->className(),p->fullPath(),opp_typename(typeid(T)));
00056     return ret;
00057 }


Generated on Sat May 15 20:30:43 2004 for Ethernet by doxygen1.2.17