INET Framework for OMNeT++/OMNEST
AirFrame_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from linklayer/mfcore/AirFrame.msg.
00003 //
00004 
00005 #ifndef _AIRFRAME_M_H_
00006 #define _AIRFRAME_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 #include "Coord.h"
00019 // }}
00020 
00021 
00022 
00036 class AirFrame : public ::cPacket
00037 {
00038   protected:
00039     double pSend_var;
00040     int channelNumber_var;
00041     simtime_t duration_var;
00042     double bitrate_var;
00043     Coord senderPos_var;
00044 
00045   private:
00046     void copy(const AirFrame& other);
00047 
00048   protected:
00049     // protected and unimplemented operator==(), to prevent accidental usage
00050     bool operator==(const AirFrame&);
00051 
00052   public:
00053     AirFrame(const char *name=NULL, int kind=0);
00054     AirFrame(const AirFrame& other);
00055     virtual ~AirFrame();
00056     AirFrame& operator=(const AirFrame& other);
00057     virtual AirFrame *dup() const {return new AirFrame(*this);}
00058     virtual void parsimPack(cCommBuffer *b);
00059     virtual void parsimUnpack(cCommBuffer *b);
00060 
00061     // field getter/setter methods
00062     virtual double getPSend() const;
00063     virtual void setPSend(double pSend);
00064     virtual int getChannelNumber() const;
00065     virtual void setChannelNumber(int channelNumber);
00066     virtual simtime_t getDuration() const;
00067     virtual void setDuration(simtime_t duration);
00068     virtual double getBitrate() const;
00069     virtual void setBitrate(double bitrate);
00070     virtual Coord& getSenderPos();
00071     virtual const Coord& getSenderPos() const {return const_cast<AirFrame*>(this)->getSenderPos();}
00072     virtual void setSenderPos(const Coord& senderPos);
00073 };
00074 
00075 inline void doPacking(cCommBuffer *b, AirFrame& obj) {obj.parsimPack(b);}
00076 inline void doUnpacking(cCommBuffer *b, AirFrame& obj) {obj.parsimUnpack(b);}
00077 
00078 
00079 #endif // _AIRFRAME_M_H_