TTEthernet Model for INET Framework
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
APIPayload_m.h
Go to the documentation of this file.
1
//
2
// Generated file, do not edit! Created by opp_msgc 4.3 from api/APIPayload.msg.
3
//
4
5
#ifndef _APIPAYLOAD_M_H_
6
#define _APIPAYLOAD_M_H_
7
8
#include <omnetpp.h>
9
10
// opp_msgc version check
11
#define MSGC_VERSION 0x0403
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 "INETDefs.h"
18
// }}
19
20
21
namespace
TTEthernetModel {
22
32
class
APIPayload
:
public
::cPacket
33
{
34
protected
:
35
unsigned
char
*
data_var
;
// array ptr
36
unsigned
int
data_arraysize
;
37
38
private
:
39
void
copy
(
const
APIPayload
& other);
40
41
protected
:
42
// protected and unimplemented operator==(), to prevent accidental usage
43
bool
operator==
(
const
APIPayload
&);
44
45
public
:
46
APIPayload
(
const
char
*name=NULL,
int
kind=0);
47
APIPayload
(
const
APIPayload
& other);
48
virtual
~APIPayload
();
49
APIPayload
&
operator=
(
const
APIPayload
& other);
50
virtual
APIPayload
*
dup
()
const
{
return
new
APIPayload
(*
this
);}
51
virtual
void
parsimPack
(cCommBuffer *b);
52
virtual
void
parsimUnpack
(cCommBuffer *b);
53
54
// field getter/setter methods
55
virtual
void
setDataArraySize
(
unsigned
int
size);
56
virtual
unsigned
int
getDataArraySize
()
const
;
57
virtual
unsigned
char
getData
(
unsigned
int
k)
const
;
58
virtual
void
setData
(
unsigned
int
k,
unsigned
char
data);
59
};
60
61
inline
void
doPacking
(cCommBuffer *b,
APIPayload
& obj) {obj.
parsimPack
(b);}
62
inline
void
doUnpacking
(cCommBuffer *b,
APIPayload
& obj) {obj.
parsimUnpack
(b);}
63
64
};
// end namespace TTEthernetModel
65
66
#endif // _APIPAYLOAD_M_H_
src
api
APIPayload_m.h
Generated on Tue May 7 2013 11:17:26 for TTEthernet Model for INET Framework by
1.8.3.1