INET Framework for OMNeT++/OMNEST
ExtFrame_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from linklayer/ext/ExtFrame.msg.
00003 //
00004 
00005 #ifndef _EXTFRAME_M_H_
00006 #define _EXTFRAME_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 
00017 
00027 class ExtFrame : public ::cMessage
00028 {
00029   protected:
00030     uint8 *data_var; // array ptr
00031     unsigned int data_arraysize;
00032 
00033   private:
00034     void copy(const ExtFrame& other);
00035 
00036   protected:
00037     // protected and unimplemented operator==(), to prevent accidental usage
00038     bool operator==(const ExtFrame&);
00039 
00040   public:
00041     ExtFrame(const char *name=NULL, int kind=0);
00042     ExtFrame(const ExtFrame& other);
00043     virtual ~ExtFrame();
00044     ExtFrame& operator=(const ExtFrame& other);
00045     virtual ExtFrame *dup() const {return new ExtFrame(*this);}
00046     virtual void parsimPack(cCommBuffer *b);
00047     virtual void parsimUnpack(cCommBuffer *b);
00048 
00049     // field getter/setter methods
00050     virtual void setDataArraySize(unsigned int size);
00051     virtual unsigned int getDataArraySize() const;
00052     virtual uint8 getData(unsigned int k) const;
00053     virtual void setData(unsigned int k, uint8 data);
00054 };
00055 
00056 inline void doPacking(cCommBuffer *b, ExtFrame& obj) {obj.parsimPack(b);}
00057 inline void doUnpacking(cCommBuffer *b, ExtFrame& obj) {obj.parsimUnpack(b);}
00058 
00059 
00060 #endif // _EXTFRAME_M_H_