|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/switch/stp/STPTCN.msg. 00003 // 00004 00005 #ifndef _STPTCN_M_H_ 00006 #define _STPTCN_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 00026 class STPTCN : public ::cPacket 00027 { 00028 protected: 00029 unsigned int vlan_var; 00030 00031 private: 00032 void copy(const STPTCN& other); 00033 00034 protected: 00035 // protected and unimplemented operator==(), to prevent accidental usage 00036 bool operator==(const STPTCN&); 00037 00038 public: 00039 STPTCN(const char *name=NULL, int kind=0); 00040 STPTCN(const STPTCN& other); 00041 virtual ~STPTCN(); 00042 STPTCN& operator=(const STPTCN& other); 00043 virtual STPTCN *dup() const {return new STPTCN(*this);} 00044 virtual void parsimPack(cCommBuffer *b); 00045 virtual void parsimUnpack(cCommBuffer *b); 00046 00047 // field getter/setter methods 00048 virtual unsigned int getVlan() const; 00049 virtual void setVlan(unsigned int vlan); 00050 }; 00051 00052 inline void doPacking(cCommBuffer *b, STPTCN& obj) {obj.parsimPack(b);} 00053 inline void doUnpacking(cCommBuffer *b, STPTCN& obj) {obj.parsimUnpack(b);} 00054 00055 00056 #endif // _STPTCN_M_H_