INET Framework for OMNeT++/OMNEST
AnsaEtherFrame_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/switch/AnsaEtherFrame.msg.
00003 //
00004 
00005 #ifndef _ANSAETHERFRAME_M_H_
00006 #define _ANSAETHERFRAME_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 "Ethernet.h"
00018 #include "MACAddress.h"
00019 #include "Ieee802Ctrl_m.h" 
00020 #include "EtherFrame_m.h"
00021 // }}
00022 
00023 
00024 
00036 class AnsaEtherFrame : public ::EthernetIIFrame
00037 {
00038   protected:
00039     int vlan_var;
00040     opp_string displayString_var;
00041 
00042   private:
00043     void copy(const AnsaEtherFrame& other);
00044 
00045   protected:
00046     // protected and unimplemented operator==(), to prevent accidental usage
00047     bool operator==(const AnsaEtherFrame&);
00048 
00049   public:
00050     AnsaEtherFrame(const char *name=NULL, int kind=0);
00051     AnsaEtherFrame(const AnsaEtherFrame& other);
00052     virtual ~AnsaEtherFrame();
00053     AnsaEtherFrame& operator=(const AnsaEtherFrame& other);
00054     virtual AnsaEtherFrame *dup() const {return new AnsaEtherFrame(*this);}
00055     virtual void parsimPack(cCommBuffer *b);
00056     virtual void parsimUnpack(cCommBuffer *b);
00057 
00058     // field getter/setter methods
00059     virtual int getVlan() const;
00060     virtual void setVlan(int vlan);
00061     virtual const char * getDisplayString() const;
00062     virtual void setDisplayString(const char * displayString);
00063 };
00064 
00065 inline void doPacking(cCommBuffer *b, AnsaEtherFrame& obj) {obj.parsimPack(b);}
00066 inline void doUnpacking(cCommBuffer *b, AnsaEtherFrame& obj) {obj.parsimUnpack(b);}
00067 
00068 
00069 #endif // _ANSAETHERFRAME_M_H_