OverSim
SimMud_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from tier2/simmud/SimMud.msg.
3 //
4 
5 #ifndef _SIMMUD_M_H_
6 #define _SIMMUD_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 <NodeHandle.h>
18 #include <CommonMessages_m.h>
19 
20 #define SIMMUD_MOVE_L(msg) ( NODEHANDLE_L + 2*sizeof(double) + 8 )
21 // }}
22 
23 
24 
38 class SimMudMoveMessage : public ::cPacket
39 {
40  protected:
42  double posX_var;
43  double posY_var;
44  simtime_t timestamp_var;
46 
47  private:
48  void copy(const SimMudMoveMessage& other);
49 
50  protected:
51  // protected and unimplemented operator==(), to prevent accidental usage
52  bool operator==(const SimMudMoveMessage&);
53 
54  public:
55  SimMudMoveMessage(const char *name=NULL, int kind=0);
57  virtual ~SimMudMoveMessage();
59  virtual SimMudMoveMessage *dup() const {return new SimMudMoveMessage(*this);}
60  virtual void parsimPack(cCommBuffer *b);
61  virtual void parsimUnpack(cCommBuffer *b);
62 
63  // field getter/setter methods
64  virtual NodeHandle& getSrc();
65  virtual const NodeHandle& getSrc() const {return const_cast<SimMudMoveMessage*>(this)->getSrc();}
66  virtual void setSrc(const NodeHandle& src);
67  virtual double getPosX() const;
68  virtual void setPosX(double posX);
69  virtual double getPosY() const;
70  virtual void setPosY(double posY);
71  virtual simtime_t getTimestamp() const;
72  virtual void setTimestamp(simtime_t timestamp);
73  virtual bool getLeaveRegion() const;
74  virtual void setLeaveRegion(bool leaveRegion);
75 };
76 
77 inline void doPacking(cCommBuffer *b, SimMudMoveMessage& obj) {obj.parsimPack(b);}
78 inline void doUnpacking(cCommBuffer *b, SimMudMoveMessage& obj) {obj.parsimUnpack(b);}
79 
80 
81 #endif // _SIMMUD_M_H_