-
Notifications
You must be signed in to change notification settings - Fork 0
/
tictoc13_m.h
82 lines (68 loc) · 2.06 KB
/
tictoc13_m.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// Generated file, do not edit! Created by nedtool 5.0 from tictoc13.msg.
//
#ifndef __TICTOC13_M_H
#define __TICTOC13_M_H
#include <omnetpp.h>
// nedtool version check
#define MSGC_VERSION 0x0500
#if (MSGC_VERSION!=OMNETPP_VERSION)
# error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#endif
/**
* Class generated from <tt>tictoc13.msg:12</tt> by nedtool.
* <pre>
* message TicTocMsg13
* {
* char source;
* int destination;
* char receiver;
*
* int pid;
* long amount;
*
*
*
* int hopCount = 0;
* }
* </pre>
*/
class TicTocMsg13 : public ::omnetpp::cMessage
{
protected:
char source;
int destination;
char receiver;
int pid;
long amount;
int hopCount;
private:
void copy(const TicTocMsg13& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const TicTocMsg13&);
public:
TicTocMsg13(const char *name=nullptr, int kind=0);
TicTocMsg13(const TicTocMsg13& other);
virtual ~TicTocMsg13();
TicTocMsg13& operator=(const TicTocMsg13& other);
virtual TicTocMsg13 *dup() const {return new TicTocMsg13(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const;
virtual void parsimUnpack(omnetpp::cCommBuffer *b);
// field getter/setter methods
virtual char getSource() const;
virtual void setSource(char source);
virtual int getDestination() const;
virtual void setDestination(int destination);
virtual char getReceiver() const;
virtual void setReceiver(char receiver);
virtual int getPid() const;
virtual void setPid(int pid);
virtual long getAmount() const;
virtual void setAmount(long amount);
virtual int getHopCount() const;
virtual void setHopCount(int hopCount);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const TicTocMsg13& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, TicTocMsg13& obj) {obj.parsimUnpack(b);}
#endif // ifndef __TICTOC13_M_H