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
SchedulerMessage_m.h
Go to the documentation of this file.
1
//
2
// Generated file, do not edit! Created by opp_msgc 4.3 from scheduler/SchedulerMessage.msg.
3
//
4
5
#ifndef _SCHEDULERMESSAGE_M_H_
6
#define _SCHEDULERMESSAGE_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
17
namespace
TTEthernetModel {
18
32
enum
SchedulerMessageKind
{
33
NEW_CYCLE
= 0,
34
ACTION_TIME_EVENT
= 1,
35
TIMER_EVENT
= 2
36
};
37
45
class
SchedulerMessage
:
public
::cMessage
46
{
47
protected
:
48
49
private
:
50
void
copy
(
const
SchedulerMessage
& other);
51
52
protected
:
53
// protected and unimplemented operator==(), to prevent accidental usage
54
bool
operator==
(
const
SchedulerMessage
&);
55
56
public
:
57
SchedulerMessage
(
const
char
*name=NULL,
int
kind=0);
58
SchedulerMessage
(
const
SchedulerMessage
& other);
59
virtual
~SchedulerMessage
();
60
SchedulerMessage
&
operator=
(
const
SchedulerMessage
& other);
61
virtual
SchedulerMessage
*
dup
()
const
{
return
new
SchedulerMessage
(*
this
);}
62
virtual
void
parsimPack
(cCommBuffer *b);
63
virtual
void
parsimUnpack
(cCommBuffer *b);
64
65
// field getter/setter methods
66
};
67
68
inline
void
doPacking
(cCommBuffer *b,
SchedulerMessage
& obj) {obj.
parsimPack
(b);}
69
inline
void
doUnpacking
(cCommBuffer *b,
SchedulerMessage
& obj) {obj.
parsimUnpack
(b);}
70
103
class
SchedulerEvent_Base
:
public
::TTEthernetModel::SchedulerMessage
104
{
105
protected
:
106
107
private
:
108
void
copy
(
const
SchedulerEvent_Base
& other);
109
110
protected
:
111
// protected and unimplemented operator==(), to prevent accidental usage
112
bool
operator==
(
const
SchedulerEvent_Base
&);
113
// make constructors protected to avoid instantiation
114
SchedulerEvent_Base
(
const
char
*name=NULL,
int
kind=0);
115
SchedulerEvent_Base
(
const
SchedulerEvent_Base
& other);
116
// make assignment operator protected to force the user override it
117
SchedulerEvent_Base
&
operator=
(
const
SchedulerEvent_Base
& other);
118
119
public
:
120
virtual
~SchedulerEvent_Base
();
121
virtual
SchedulerEvent_Base
*
dup
()
const
{
throw
cRuntimeError(
"You forgot to manually add a dup() function to class SchedulerEvent"
);}
122
virtual
void
parsimPack
(cCommBuffer *b);
123
virtual
void
parsimUnpack
(cCommBuffer *b);
124
125
// field getter/setter methods
126
};
127
128
};
// end namespace TTEthernetModel
129
130
#endif // _SCHEDULERMESSAGE_M_H_
src
scheduler
SchedulerMessage_m.h
Generated on Tue May 7 2013 11:17:27 for TTEthernet Model for INET Framework by
1.8.3.1