Nps_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 from common/Nps.msg.
00003 //
00004 
00005 #ifndef _NPS_M_H_
00006 #define _NPS_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0401
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 <TransportAddress.h>
00018 #include <CommonMessages_m.h>
00019 
00020 static const int NPSLAYER_L = 8;
00021 
00022 #define COORDSREQCALL_L(msg) BASECALL_L(msg)
00023 #define COORDSREQRESPONSE_L(msg) (BASERESPONSE_L(msg) + NPSLAYER_L)
00024 // }}
00025 
00026 
00027 
00036 class CoordsReqCall : public ::BaseCallMessage
00037 {
00038   protected:
00039 
00040     // protected and unimplemented operator==(), to prevent accidental usage
00041     bool operator==(const CoordsReqCall&);
00042 
00043   public:
00044     CoordsReqCall(const char *name=NULL, int kind=0);
00045     CoordsReqCall(const CoordsReqCall& other);
00046     virtual ~CoordsReqCall();
00047     CoordsReqCall& operator=(const CoordsReqCall& other);
00048     virtual CoordsReqCall *dup() const {return new CoordsReqCall(*this);}
00049     virtual void parsimPack(cCommBuffer *b);
00050     virtual void parsimUnpack(cCommBuffer *b);
00051 
00052     // field getter/setter methods
00053 };
00054 
00055 inline void doPacking(cCommBuffer *b, CoordsReqCall& obj) {obj.parsimPack(b);}
00056 inline void doUnpacking(cCommBuffer *b, CoordsReqCall& obj) {obj.parsimUnpack(b);}
00057 
00068 class CoordsReqResponse : public ::BaseResponseMessage
00069 {
00070   protected:
00071     char layer_var;
00072 
00073     // protected and unimplemented operator==(), to prevent accidental usage
00074     bool operator==(const CoordsReqResponse&);
00075 
00076   public:
00077     CoordsReqResponse(const char *name=NULL, int kind=0);
00078     CoordsReqResponse(const CoordsReqResponse& other);
00079     virtual ~CoordsReqResponse();
00080     CoordsReqResponse& operator=(const CoordsReqResponse& other);
00081     virtual CoordsReqResponse *dup() const {return new CoordsReqResponse(*this);}
00082     virtual void parsimPack(cCommBuffer *b);
00083     virtual void parsimUnpack(cCommBuffer *b);
00084 
00085     // field getter/setter methods
00086     virtual char getLayer() const;
00087     virtual void setLayer(char layer_var);
00088 };
00089 
00090 inline void doPacking(cCommBuffer *b, CoordsReqResponse& obj) {obj.parsimPack(b);}
00091 inline void doUnpacking(cCommBuffer *b, CoordsReqResponse& obj) {obj.parsimUnpack(b);}
00092 
00093 
00094 #endif // _NPS_M_H_