|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/pingapp/PingPayload.msg. 00003 // 00004 00005 #ifndef _PINGPAYLOAD_M_H_ 00006 #define _PINGPAYLOAD_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 00033 class PingPayload : public ::cPacket 00034 { 00035 protected: 00036 long originatorId_var; 00037 long seqNo_var; 00038 unsigned char *data_var; // array ptr 00039 unsigned int data_arraysize; 00040 00041 private: 00042 void copy(const PingPayload& other); 00043 00044 protected: 00045 // protected and unimplemented operator==(), to prevent accidental usage 00046 bool operator==(const PingPayload&); 00047 00048 public: 00049 PingPayload(const char *name=NULL, int kind=0); 00050 PingPayload(const PingPayload& other); 00051 virtual ~PingPayload(); 00052 PingPayload& operator=(const PingPayload& other); 00053 virtual PingPayload *dup() const {return new PingPayload(*this);} 00054 virtual void parsimPack(cCommBuffer *b); 00055 virtual void parsimUnpack(cCommBuffer *b); 00056 00057 // field getter/setter methods 00058 virtual long getOriginatorId() const; 00059 virtual void setOriginatorId(long originatorId); 00060 virtual long getSeqNo() const; 00061 virtual void setSeqNo(long seqNo); 00062 virtual void setDataArraySize(unsigned int size); 00063 virtual unsigned int getDataArraySize() const; 00064 virtual unsigned char getData(unsigned int k) const; 00065 virtual void setData(unsigned int k, unsigned char data); 00066 }; 00067 00068 inline void doPacking(cCommBuffer *b, PingPayload& obj) {obj.parsimPack(b);} 00069 inline void doUnpacking(cCommBuffer *b, PingPayload& obj) {obj.parsimUnpack(b);} 00070 00071 00072 #endif // _PINGPAYLOAD_M_H_