|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from linklayer/mf80211/macLayer/Mac80211Pkt.msg. 00003 // 00004 00005 #ifndef _MAC80211PKT_M_H_ 00006 #define _MAC80211PKT_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 "MacPkt_m.h" 00018 // }} 00019 00020 00021 00036 class Mac80211Pkt : public ::MacPkt 00037 { 00038 protected: 00039 int address3_var; 00040 int address4_var; 00041 simtime_t duration_var; 00042 int fragmentation_var; 00043 int informationDS_var; 00044 int sequenceControl_var; 00045 00046 private: 00047 void copy(const Mac80211Pkt& other); 00048 00049 protected: 00050 // protected and unimplemented operator==(), to prevent accidental usage 00051 bool operator==(const Mac80211Pkt&); 00052 00053 public: 00054 Mac80211Pkt(const char *name=NULL, int kind=0); 00055 Mac80211Pkt(const Mac80211Pkt& other); 00056 virtual ~Mac80211Pkt(); 00057 Mac80211Pkt& operator=(const Mac80211Pkt& other); 00058 virtual Mac80211Pkt *dup() const {return new Mac80211Pkt(*this);} 00059 virtual void parsimPack(cCommBuffer *b); 00060 virtual void parsimUnpack(cCommBuffer *b); 00061 00062 // field getter/setter methods 00063 virtual int getAddress3() const; 00064 virtual void setAddress3(int address3); 00065 virtual int getAddress4() const; 00066 virtual void setAddress4(int address4); 00067 virtual simtime_t getDuration() const; 00068 virtual void setDuration(simtime_t duration); 00069 virtual int getFragmentation() const; 00070 virtual void setFragmentation(int fragmentation); 00071 virtual int getInformationDS() const; 00072 virtual void setInformationDS(int informationDS); 00073 virtual int getSequenceControl() const; 00074 virtual void setSequenceControl(int sequenceControl); 00075 }; 00076 00077 inline void doPacking(cCommBuffer *b, Mac80211Pkt& obj) {obj.parsimPack(b);} 00078 inline void doUnpacking(cCommBuffer *b, Mac80211Pkt& obj) {obj.parsimUnpack(b);} 00079 00080 00081 #endif // _MAC80211PKT_M_H_