00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.0 from RAWEtherFrame.msg. 00003 // 00004 00005 #ifndef _RAWETHERFRAME_M_H_ 00006 #define _RAWETHERFRAME_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 00017 00049 class RAWEtherFrame_Base : public cPacket 00050 { 00051 protected: 00052 char *rawBytes_var; // array ptr 00053 unsigned int rawBytes_arraysize; 00054 00055 // protected and unimplemented operator==(), to prevent accidental usage 00056 bool operator==(const RAWEtherFrame_Base&); 00057 // make constructors protected to avoid instantiation 00058 RAWEtherFrame_Base(const char *name=NULL, int kind=0); 00059 RAWEtherFrame_Base(const RAWEtherFrame_Base& other); 00060 // make assignment operator protected to force the user override it 00061 RAWEtherFrame_Base& operator=(const RAWEtherFrame_Base& other); 00062 00063 public: 00064 virtual ~RAWEtherFrame_Base(); 00065 virtual RAWEtherFrame_Base *dup() const {throw cRuntimeError("You forgot to manually add a dup() function to class RAWEtherFrame");} 00066 virtual void parsimPack(cCommBuffer *b); 00067 virtual void parsimUnpack(cCommBuffer *b); 00068 00069 // field getter/setter methods 00070 virtual void setRawBytesArraySize(unsigned int size); 00071 virtual unsigned int getRawBytesArraySize() const; 00072 virtual char getRawBytes(unsigned int k) const; 00073 virtual void setRawBytes(unsigned int k, char rawBytes_var); 00074 }; 00075 00076 00077 #endif // _RAWETHERFRAME_M_H_