|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from base/ByteArrayMessage.msg. 00003 // 00004 00005 #ifndef _BYTEARRAYMESSAGE_M_H_ 00006 #define _BYTEARRAYMESSAGE_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 00056 class ByteArrayMessage_Base : public ::cPacket 00057 { 00058 protected: 00059 char *data_var; // array ptr 00060 unsigned int data_arraysize; 00061 00062 private: 00063 void copy(const ByteArrayMessage_Base& other); 00064 00065 protected: 00066 // protected and unimplemented operator==(), to prevent accidental usage 00067 bool operator==(const ByteArrayMessage_Base&); 00068 // make constructors protected to avoid instantiation 00069 ByteArrayMessage_Base(const char *name=NULL, int kind=0); 00070 ByteArrayMessage_Base(const ByteArrayMessage_Base& other); 00071 // make assignment operator protected to force the user override it 00072 ByteArrayMessage_Base& operator=(const ByteArrayMessage_Base& other); 00073 00074 public: 00075 virtual ~ByteArrayMessage_Base(); 00076 virtual ByteArrayMessage_Base *dup() const {throw cRuntimeError("You forgot to manually add a dup() function to class ByteArrayMessage");} 00077 virtual void parsimPack(cCommBuffer *b); 00078 virtual void parsimUnpack(cCommBuffer *b); 00079 00080 // field getter/setter methods 00081 virtual void setDataArraySize(unsigned int size); 00082 virtual unsigned int getDataArraySize() const; 00083 virtual char getData(unsigned int k) const; 00084 virtual void setData(unsigned int k, char data); 00085 }; 00086 00087 00088 #endif // _BYTEARRAYMESSAGE_M_H_