|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/udpapp/UDPEchoAppMsg.msg. 00003 // 00004 00005 #ifndef _UDPECHOAPPMSG_M_H_ 00006 #define _UDPECHOAPPMSG_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 // opp_msgc version check 00011 #define MSGC_VERSION 0x0402 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 {{ 00017 #include "INETDefs.h" 00018 // }} 00019 00020 00021 00031 class UDPEchoAppMsg : public ::cPacket 00032 { 00033 protected: 00034 bool isRequest_var; 00035 00036 private: 00037 void copy(const UDPEchoAppMsg& other); 00038 00039 protected: 00040 // protected and unimplemented operator==(), to prevent accidental usage 00041 bool operator==(const UDPEchoAppMsg&); 00042 00043 public: 00044 UDPEchoAppMsg(const char *name=NULL, int kind=0); 00045 UDPEchoAppMsg(const UDPEchoAppMsg& other); 00046 virtual ~UDPEchoAppMsg(); 00047 UDPEchoAppMsg& operator=(const UDPEchoAppMsg& other); 00048 virtual UDPEchoAppMsg *dup() const {return new UDPEchoAppMsg(*this);} 00049 virtual void parsimPack(cCommBuffer *b); 00050 virtual void parsimUnpack(cCommBuffer *b); 00051 00052 // field getter/setter methods 00053 virtual bool getIsRequest() const; 00054 virtual void setIsRequest(bool isRequest); 00055 }; 00056 00057 inline void doPacking(cCommBuffer *b, UDPEchoAppMsg& obj) {obj.parsimPack(b);} 00058 inline void doUnpacking(cCommBuffer *b, UDPEchoAppMsg& obj) {obj.parsimUnpack(b);} 00059 00060 00061 #endif // _UDPECHOAPPMSG_M_H_