|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from linklayer/contract/PhyControlInfo.msg. 00003 // 00004 00005 #ifndef _PHYCONTROLINFO_M_H_ 00006 #define _PHYCONTROLINFO_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 00032 enum PhyCommandCode { 00033 PHY_C_CONFIGURERADIO = 1 00034 }; 00035 00046 class PhyControlInfo : public ::cObject 00047 { 00048 protected: 00049 int channelNumber_var; 00050 double bitrate_var; 00051 00052 private: 00053 void copy(const PhyControlInfo& other); 00054 00055 protected: 00056 // protected and unimplemented operator==(), to prevent accidental usage 00057 bool operator==(const PhyControlInfo&); 00058 00059 public: 00060 PhyControlInfo(); 00061 PhyControlInfo(const PhyControlInfo& other); 00062 virtual ~PhyControlInfo(); 00063 PhyControlInfo& operator=(const PhyControlInfo& other); 00064 virtual PhyControlInfo *dup() const {return new PhyControlInfo(*this);} 00065 virtual void parsimPack(cCommBuffer *b); 00066 virtual void parsimUnpack(cCommBuffer *b); 00067 00068 // field getter/setter methods 00069 virtual int getChannelNumber() const; 00070 virtual void setChannelNumber(int channelNumber); 00071 virtual double getBitrate() const; 00072 virtual void setBitrate(double bitrate); 00073 }; 00074 00075 inline void doPacking(cCommBuffer *b, PhyControlInfo& obj) {obj.parsimPack(b);} 00076 inline void doUnpacking(cCommBuffer *b, PhyControlInfo& obj) {obj.parsimUnpack(b);} 00077 00078 00079 #endif // _PHYCONTROLINFO_M_H_