INET Framework for OMNeT++/OMNEST
EtherApp_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/ethernet/EtherApp.msg.
00003 //
00004 
00005 #ifndef _ETHERAPP_M_H_
00006 #define _ETHERAPP_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 #define ETHERAPP_CLI_SAP  0xf0
00019 #define ETHERAPP_SRV_SAP  0xf1
00020 // }}
00021 
00022 
00023 
00034 class EtherAppReq : public ::cPacket
00035 {
00036   protected:
00037     long requestId_var;
00038     long responseBytes_var;
00039 
00040   private:
00041     void copy(const EtherAppReq& other);
00042 
00043   protected:
00044     // protected and unimplemented operator==(), to prevent accidental usage
00045     bool operator==(const EtherAppReq&);
00046 
00047   public:
00048     EtherAppReq(const char *name=NULL, int kind=0);
00049     EtherAppReq(const EtherAppReq& other);
00050     virtual ~EtherAppReq();
00051     EtherAppReq& operator=(const EtherAppReq& other);
00052     virtual EtherAppReq *dup() const {return new EtherAppReq(*this);}
00053     virtual void parsimPack(cCommBuffer *b);
00054     virtual void parsimUnpack(cCommBuffer *b);
00055 
00056     // field getter/setter methods
00057     virtual long getRequestId() const;
00058     virtual void setRequestId(long requestId);
00059     virtual long getResponseBytes() const;
00060     virtual void setResponseBytes(long responseBytes);
00061 };
00062 
00063 inline void doPacking(cCommBuffer *b, EtherAppReq& obj) {obj.parsimPack(b);}
00064 inline void doUnpacking(cCommBuffer *b, EtherAppReq& obj) {obj.parsimUnpack(b);}
00065 
00076 class EtherAppResp : public ::cPacket
00077 {
00078   protected:
00079     int requestId_var;
00080     int numFrames_var;
00081 
00082   private:
00083     void copy(const EtherAppResp& other);
00084 
00085   protected:
00086     // protected and unimplemented operator==(), to prevent accidental usage
00087     bool operator==(const EtherAppResp&);
00088 
00089   public:
00090     EtherAppResp(const char *name=NULL, int kind=0);
00091     EtherAppResp(const EtherAppResp& other);
00092     virtual ~EtherAppResp();
00093     EtherAppResp& operator=(const EtherAppResp& other);
00094     virtual EtherAppResp *dup() const {return new EtherAppResp(*this);}
00095     virtual void parsimPack(cCommBuffer *b);
00096     virtual void parsimUnpack(cCommBuffer *b);
00097 
00098     // field getter/setter methods
00099     virtual int getRequestId() const;
00100     virtual void setRequestId(int requestId);
00101     virtual int getNumFrames() const;
00102     virtual void setNumFrames(int numFrames);
00103 };
00104 
00105 inline void doPacking(cCommBuffer *b, EtherAppResp& obj) {obj.parsimPack(b);}
00106 inline void doUnpacking(cCommBuffer *b, EtherAppResp& obj) {obj.parsimUnpack(b);}
00107 
00108 
00109 #endif // _ETHERAPP_M_H_