INET Framework for OMNeT++/OMNEST
PPPFrame_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from linklayer/ppp/PPPFrame.msg.
00003 //
00004 
00005 #ifndef _PPPFRAME_M_H_
00006 #define _PPPFRAME_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 const int PPP_OVERHEAD_BYTES = 7;
00019 // }}
00020 
00021 
00022 
00031 class PPPFrame : public ::cPacket
00032 {
00033   protected:
00034 
00035   private:
00036     void copy(const PPPFrame& other);
00037 
00038   protected:
00039     // protected and unimplemented operator==(), to prevent accidental usage
00040     bool operator==(const PPPFrame&);
00041 
00042   public:
00043     PPPFrame(const char *name=NULL, int kind=0);
00044     PPPFrame(const PPPFrame& other);
00045     virtual ~PPPFrame();
00046     PPPFrame& operator=(const PPPFrame& other);
00047     virtual PPPFrame *dup() const {return new PPPFrame(*this);}
00048     virtual void parsimPack(cCommBuffer *b);
00049     virtual void parsimUnpack(cCommBuffer *b);
00050 
00051     // field getter/setter methods
00052 };
00053 
00054 inline void doPacking(cCommBuffer *b, PPPFrame& obj) {obj.parsimPack(b);}
00055 inline void doUnpacking(cCommBuffer *b, PPPFrame& obj) {obj.parsimUnpack(b);}
00056 
00057 
00058 #endif // _PPPFRAME_M_H_