00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.0 from underlay/simpleunderlay/SimpleUDPPacket.msg. 00003 // 00004 00005 #ifndef _SIMPLEUDPPACKET_M_H_ 00006 #define _SIMPLEUDPPACKET_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 // opp_msgc version check 00011 #define MSGC_VERSION 0x0400 00012 #if (MSGC_VERSION!=OMNETPP_VERSION) 00013 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help. 00014 #endif 00015 00016 // cplusplus {{ ... }} section: 00017 00018 #include "INETDefs.h" 00019 // end cplusplus 00020 00021 00022 00033 class SimpleUDPPacket : public cPacket 00034 { 00035 protected: 00036 int sourcePort_var; 00037 int destinationPort_var; 00038 00039 // protected and unimplemented operator==(), to prevent accidental usage 00040 bool operator==(const SimpleUDPPacket&); 00041 00042 public: 00043 SimpleUDPPacket(const char *name=NULL, int kind=0); 00044 SimpleUDPPacket(const SimpleUDPPacket& other); 00045 virtual ~SimpleUDPPacket(); 00046 SimpleUDPPacket& operator=(const SimpleUDPPacket& other); 00047 virtual SimpleUDPPacket *dup() const {return new SimpleUDPPacket(*this);} 00048 virtual void parsimPack(cCommBuffer *b); 00049 virtual void parsimUnpack(cCommBuffer *b); 00050 00051 // field getter/setter methods 00052 virtual int getSourcePort() const; 00053 virtual void setSourcePort(int sourcePort_var); 00054 virtual int getDestinationPort() const; 00055 virtual void setDestinationPort(int destinationPort_var); 00056 }; 00057 00058 inline void doPacking(cCommBuffer *b, SimpleUDPPacket& obj) {obj.parsimPack(b);} 00059 inline void doUnpacking(cCommBuffer *b, SimpleUDPPacket& obj) {obj.parsimUnpack(b);} 00060 00061 00062 #endif // _SIMPLEUDPPACKET_M_H_
1.5.8