OverSim
I3TriggersMessage_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/I3TriggersMessage.msg.
3 //
4 
5 #ifndef _I3TRIGGERSMESSAGE_M_H_
6 #define _I3TRIGGERSMESSAGE_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 
32 class TriggersHandshakeMsg : public ::cPacket
33 {
34  protected:
35  int value_var;
37 
38  private:
39  void copy(const TriggersHandshakeMsg& other);
40 
41  protected:
42  // protected and unimplemented operator==(), to prevent accidental usage
43  bool operator==(const TriggersHandshakeMsg&);
44 
45  public:
46  TriggersHandshakeMsg(const char *name=NULL, int kind=0);
48  virtual ~TriggersHandshakeMsg();
50  virtual TriggersHandshakeMsg *dup() const {return new TriggersHandshakeMsg(*this);}
51  virtual void parsimPack(cCommBuffer *b);
52  virtual void parsimUnpack(cCommBuffer *b);
53 
54  // field getter/setter methods
55  virtual int getValue() const;
56  virtual void setValue(int value);
57  virtual I3Identifier& getTriggerId();
58  virtual const I3Identifier& getTriggerId() const {return const_cast<TriggersHandshakeMsg*>(this)->getTriggerId();}
59  virtual void setTriggerId(const I3Identifier& triggerId);
60 };
61 
62 inline void doPacking(cCommBuffer *b, TriggersHandshakeMsg& obj) {obj.parsimPack(b);}
63 inline void doUnpacking(cCommBuffer *b, TriggersHandshakeMsg& obj) {obj.parsimUnpack(b);}
64 
74 class TriggersMsg : public ::cPacket
75 {
76  protected:
77  int value_var;
78 
79  private:
80  void copy(const TriggersMsg& other);
81 
82  protected:
83  // protected and unimplemented operator==(), to prevent accidental usage
84  bool operator==(const TriggersMsg&);
85 
86  public:
87  TriggersMsg(const char *name=NULL, int kind=0);
88  TriggersMsg(const TriggersMsg& other);
89  virtual ~TriggersMsg();
90  TriggersMsg& operator=(const TriggersMsg& other);
91  virtual TriggersMsg *dup() const {return new TriggersMsg(*this);}
92  virtual void parsimPack(cCommBuffer *b);
93  virtual void parsimUnpack(cCommBuffer *b);
94 
95  // field getter/setter methods
96  virtual int getValue() const;
97  virtual void setValue(int value);
98 };
99 
100 inline void doPacking(cCommBuffer *b, TriggersMsg& obj) {obj.parsimPack(b);}
101 inline void doUnpacking(cCommBuffer *b, TriggersMsg& obj) {obj.parsimUnpack(b);}
102 
103 
104 #endif // _I3TRIGGERSMESSAGE_M_H_