-
Notifications
You must be signed in to change notification settings - Fork 0
/
myHeader_m.h
66 lines (53 loc) · 1.57 KB
/
myHeader_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
//
// Generated file, do not edit! Created by opp_msgc 4.3 from myHeader.msg.
//
#ifndef _MYHEADER_M_H_
#define _MYHEADER_M_H_
#include <omnetpp.h>
// opp_msgc version check
#define MSGC_VERSION 0x0403
#if (MSGC_VERSION!=OMNETPP_VERSION)
# error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
#endif
/**
* Class generated from <tt>myHeader.msg</tt> by opp_msgc.
* <pre>
* packet MyHeader {
*
* string name;
* int ID;
* int year;
*
* }
* </pre>
*/
class MyHeader : public ::cPacket
{
protected:
opp_string name_var;
int ID_var;
int year_var;
private:
void copy(const MyHeader& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const MyHeader&);
public:
MyHeader(const char *name=NULL, int kind=0);
MyHeader(const MyHeader& other);
virtual ~MyHeader();
MyHeader& operator=(const MyHeader& other);
virtual MyHeader *dup() const {return new MyHeader(*this);}
virtual void parsimPack(cCommBuffer *b);
virtual void parsimUnpack(cCommBuffer *b);
// field getter/setter methods
virtual const char * getName() const;
virtual void setName(const char * name);
virtual int getID() const;
virtual void setID(int ID);
virtual int getYear() const;
virtual void setYear(int year);
};
inline void doPacking(cCommBuffer *b, MyHeader& obj) {obj.parsimPack(b);}
inline void doUnpacking(cCommBuffer *b, MyHeader& obj) {obj.parsimUnpack(b);}
#endif // _MYHEADER_M_H_