OverSim
Nps_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/Nps.msg.
3 //
4 
5 #ifndef _NPS_M_H_
6 #define _NPS_M_H_
7 
8 #include <omnetpp.h>
9 
10 // opp_msgc version check
11 #define MSGC_VERSION 0x0402
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
14 #endif
15 
16 // cplusplus {{
17 #include <TransportAddress.h>
18 #include <CommonMessages_m.h>
19 
20 static const int NPSLAYER_L = 8;
21 
22 #define COORDSREQCALL_L(msg) BASECALL_L(msg)
23 #define COORDSREQRESPONSE_L(msg) (BASERESPONSE_L(msg) + NPSLAYER_L)
24 // }}
25 
26 
27 
37 {
38  protected:
39 
40  private:
41  void copy(const CoordsReqCall& other);
42 
43  protected:
44  // protected and unimplemented operator==(), to prevent accidental usage
45  bool operator==(const CoordsReqCall&);
46 
47  public:
48  CoordsReqCall(const char *name=NULL, int kind=0);
49  CoordsReqCall(const CoordsReqCall& other);
50  virtual ~CoordsReqCall();
51  CoordsReqCall& operator=(const CoordsReqCall& other);
52  virtual CoordsReqCall *dup() const {return new CoordsReqCall(*this);}
53  virtual void parsimPack(cCommBuffer *b);
54  virtual void parsimUnpack(cCommBuffer *b);
55 
56  // field getter/setter methods
57 };
58 
59 inline void doPacking(cCommBuffer *b, CoordsReqCall& obj) {obj.parsimPack(b);}
60 inline void doUnpacking(cCommBuffer *b, CoordsReqCall& obj) {obj.parsimUnpack(b);}
61 
73 {
74  protected:
75  char layer_var;
76 
77  private:
78  void copy(const CoordsReqResponse& other);
79 
80  protected:
81  // protected and unimplemented operator==(), to prevent accidental usage
82  bool operator==(const CoordsReqResponse&);
83 
84  public:
85  CoordsReqResponse(const char *name=NULL, int kind=0);
87  virtual ~CoordsReqResponse();
89  virtual CoordsReqResponse *dup() const {return new CoordsReqResponse(*this);}
90  virtual void parsimPack(cCommBuffer *b);
91  virtual void parsimUnpack(cCommBuffer *b);
92 
93  // field getter/setter methods
94  virtual char getLayer() const;
95  virtual void setLayer(char layer);
96 };
97 
98 inline void doPacking(cCommBuffer *b, CoordsReqResponse& obj) {obj.parsimPack(b);}
99 inline void doUnpacking(cCommBuffer *b, CoordsReqResponse& obj) {obj.parsimUnpack(b);}
100 
101 
102 #endif // _NPS_M_H_