OverSim
I3SessionMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/i3/i3Apps/I3SessionMessage.msg.
3 //
4 
5 #ifndef _I3SESSIONMESSAGE_M_H_
6 #define _I3SESSIONMESSAGE_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 "I3Identifier.h"
18 // }}
19 
20 
21 
35  PAYLOAD = 0,
38 };
39 
51 class SessionMsg : public ::cPacket
52 {
53  protected:
54  int type_var;
55  double value_var;
57 
58  private:
59  void copy(const SessionMsg& other);
60 
61  protected:
62  // protected and unimplemented operator==(), to prevent accidental usage
63  bool operator==(const SessionMsg&);
64 
65  public:
66  SessionMsg(const char *name=NULL, int kind=0);
67  SessionMsg(const SessionMsg& other);
68  virtual ~SessionMsg();
69  SessionMsg& operator=(const SessionMsg& other);
70  virtual SessionMsg *dup() const {return new SessionMsg(*this);}
71  virtual void parsimPack(cCommBuffer *b);
72  virtual void parsimUnpack(cCommBuffer *b);
73 
74  // field getter/setter methods
75  virtual int getType() const;
76  virtual void setType(int type);
77  virtual double getValue() const;
78  virtual void setValue(double value);
79  virtual I3Identifier& getSource();
80  virtual const I3Identifier& getSource() const {return const_cast<SessionMsg*>(this)->getSource();}
81  virtual void setSource(const I3Identifier& source);
82 };
83 
84 inline void doPacking(cCommBuffer *b, SessionMsg& obj) {obj.parsimPack(b);}
85 inline void doUnpacking(cCommBuffer *b, SessionMsg& obj) {obj.parsimUnpack(b);}
86 
87 
88 #endif // _I3SESSIONMESSAGE_M_H_