OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PubSubMessage_m.h
Go to the documentation of this file.
1
//
2
// Generated file, do not edit! Created by opp_msgc 4.2 from overlay/pubsubmmog/PubSubMessage.msg.
3
//
4
5
#ifndef _PUBSUBMESSAGE_M_H_
6
#define _PUBSUBMESSAGE_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 <
CommonMessages_m.h
>
18
#include <
Vector2D.h
>
19
20
static
const
int
PUBSUB_FLAG_L
= 8;
21
static
const
int
PUBSUB_VECTOR_L
= 128;
22
static
const
int
PUBSUB_RESS_L
= 32;
23
static
const
int
PUBSUB_SUBSPACE_L
= 32;
24
static
const
int
PUBSUB_CHILDPOS_L
= 16;
25
static
const
int
PUBSUB_TIMESTAMP_L
= 32;
26
27
#define PUBSUB_JOINCALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L + PUBSUB_RESS_L)
28
#define PUBSUB_JOINRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
29
#define PUBSUB_RESPONSIBLENODECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
30
#define PUBSUB_RESPONSIBLENODERESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
31
#define PUBSUB_TAKEOVERSUBSPACECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
32
#define PUBSUB_TAKEOVERSUBSPACERESPONSE_L(msg) (BASECALL_L(msg))
33
#define PUBSUB_SUBSCRIPTIONCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
34
#define PUBSUB_SUBSCRIPTIONRESPONSE_L(msg) (BASECALL_L(msg) + PUBSUB_FLAG_L)
35
#define PUBSUB_UNSUBSCRIPTION_L(msg) (NODEHANDLE_L + PUBSUB_SUBSPACE_L)
36
#define PUBSUB_HELPCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
37
#define PUBSUB_HELPRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
38
#define PUBSUB_INTERMEDIATECALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
39
#define PUBSUB_INTERMEDIATERESPONSE_L(msg) (BASECALL_L(msg))
40
#define PUBSUB_BACKUPCALL_L(msg) (BASECALL_L(msg) + msg->getIntermediatesArraySize()*NODEHANDLE_L + msg->getChildrenArraySize()*(NODEHANDLE_L+PUBSUB_CHILDPOS_L))
41
#define PUBSUB_BACKUPRESPONSE_L(msg) (BASECALL_L(msg))
42
#define PUBSUB_PINGCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
43
#define PUBSUB_PINGRESPONSE_L(msg) (BASECALL_L(msg))
44
#define PUBSUB_REPLACEMENT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
45
#define PUBSUB_FAILEDNODE_L(msg) (IPADDR_L + UDPPORT_L)
46
#define PUBSUB_NODELEFT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
47
#define PUBSUB_ADOPTCHILDCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + NODEHANDLE_L)
48
#define PUBSUB_ADOPTCHILDRESPONSE_L(msg) (BASECALL_L(msg))
49
#define PUBSUB_RELEASEINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L)
50
#define PUBSUB_HELPRELEASE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
51
#define PUBSUB_BACKUPSUBSCRIPTION_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*3)
52
#define PUBSUB_BACKUPINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_CHILDPOS_L)
53
#define PUBSUB_BACKUPUNSUBSCRIBE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*2)
54
#define PUBSUB_MOVE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_VECTOR_L + PUBSUB_TIMESTAMP_L)
55
#define PUBSUB_MOVELIST_L(msg) (PUBSUB_SUBSPACE_L + PUBSUB_TIMESTAMP_L + msg->getPlayerArraySize()*(NODEHANDLE_L+PUBSUB_VECTOR_L))
56
// }}
57
58
59
74
enum
PubSubTimerType
{
75
PUBSUB_HEARTBEAT
= 0,
76
PUBSUB_CHILDPING
= 1,
77
PUBSUB_PARENT_TIMEOUT
= 2,
78
PUBSUB_TAKEOVER_GRACE_TIME
= 3,
79
PUBSUB_EVENTDELIVERY
= 4
80
};
81
93
enum
PubSubHelpType
{
94
PUBSUB_BACKUP
= 0,
95
PUBSUB_INTERMEDIATE
= 1
96
};
97
110
enum
PubSubPingType
{
111
PUBSUB_PING_BACKUP
= 0,
112
PUBSUB_PING_INTERMEDIATE
= 1,
113
PUBSUB_PING_CHILD
= 2
114
};
115
126
class
PubSubTimer
:
public
::cMessage
127
{
128
protected
:
129
int
type_var
;
130
int
subspaceId_var
;
131
132
private
:
133
void
copy
(
const
PubSubTimer
& other);
134
135
protected
:
136
// protected and unimplemented operator==(), to prevent accidental usage
137
bool
operator==
(
const
PubSubTimer
&);
138
139
public
:
140
PubSubTimer
(
const
char
*name=NULL,
int
kind=0);
141
PubSubTimer
(
const
PubSubTimer
& other);
142
virtual
~PubSubTimer
();
143
PubSubTimer
&
operator=
(
const
PubSubTimer
& other);
144
virtual
PubSubTimer
*
dup
()
const
{
return
new
PubSubTimer
(*
this
);}
145
virtual
void
parsimPack
(cCommBuffer *b);
146
virtual
void
parsimUnpack
(cCommBuffer *b);
147
148
// field getter/setter methods
149
virtual
int
getType
()
const
;
150
virtual
void
setType
(
int
type);
151
virtual
int
getSubspaceId
()
const
;
152
virtual
void
setSubspaceId
(
int
subspaceId);
153
};
154
155
inline
void
doPacking
(cCommBuffer *b,
PubSubTimer
& obj) {obj.
parsimPack
(b);}
156
inline
void
doUnpacking
(cCommBuffer *b,
PubSubTimer
& obj) {obj.
parsimUnpack
(b);}
157
168
class
PubSubJoinCall
:
public
::BaseCallMessage
169
{
170
protected
:
171
Vector2D
position_var
;
172
int
ressources_var
;
173
174
private
:
175
void
copy
(
const
PubSubJoinCall
& other);
176
177
protected
:
178
// protected and unimplemented operator==(), to prevent accidental usage
179
bool
operator==
(
const
PubSubJoinCall
&);
180
181
public
:
182
PubSubJoinCall
(
const
char
*name=NULL,
int
kind=0);
183
PubSubJoinCall
(
const
PubSubJoinCall
& other);
184
virtual
~PubSubJoinCall
();
185
PubSubJoinCall
&
operator=
(
const
PubSubJoinCall
& other);
186
virtual
PubSubJoinCall
*
dup
()
const
{
return
new
PubSubJoinCall
(*
this
);}
187
virtual
void
parsimPack
(cCommBuffer *b);
188
virtual
void
parsimUnpack
(cCommBuffer *b);
189
190
// field getter/setter methods
191
virtual
Vector2D
&
getPosition
();
192
virtual
const
Vector2D
&
getPosition
()
const
{
return
const_cast<
PubSubJoinCall
*
>
(
this
)->
getPosition
();}
193
virtual
void
setPosition
(
const
Vector2D
& position);
194
virtual
int
getRessources
()
const
;
195
virtual
void
setRessources
(
int
ressources);
196
};
197
198
inline
void
doPacking
(cCommBuffer *b,
PubSubJoinCall
& obj) {obj.
parsimPack
(b);}
199
inline
void
doUnpacking
(cCommBuffer *b,
PubSubJoinCall
& obj) {obj.
parsimUnpack
(b);}
200
211
class
PubSubJoinResponse
:
public
::BaseResponseMessage
212
{
213
protected
:
214
NodeHandle
responsibleNode_var
;
215
216
private
:
217
void
copy
(
const
PubSubJoinResponse
& other);
218
219
protected
:
220
// protected and unimplemented operator==(), to prevent accidental usage
221
bool
operator==
(
const
PubSubJoinResponse
&);
222
223
public
:
224
PubSubJoinResponse
(
const
char
*name=NULL,
int
kind=0);
225
PubSubJoinResponse
(
const
PubSubJoinResponse
& other);
226
virtual
~PubSubJoinResponse
();
227
PubSubJoinResponse
&
operator=
(
const
PubSubJoinResponse
& other);
228
virtual
PubSubJoinResponse
*
dup
()
const
{
return
new
PubSubJoinResponse
(*
this
);}
229
virtual
void
parsimPack
(cCommBuffer *b);
230
virtual
void
parsimUnpack
(cCommBuffer *b);
231
232
// field getter/setter methods
233
virtual
NodeHandle
&
getResponsibleNode
();
234
virtual
const
NodeHandle
&
getResponsibleNode
()
const
{
return
const_cast<
PubSubJoinResponse
*
>
(
this
)->
getResponsibleNode
();}
235
virtual
void
setResponsibleNode
(
const
NodeHandle
& responsibleNode);
236
};
237
238
inline
void
doPacking
(cCommBuffer *b,
PubSubJoinResponse
& obj) {obj.
parsimPack
(b);}
239
inline
void
doUnpacking
(cCommBuffer *b,
PubSubJoinResponse
& obj) {obj.
parsimUnpack
(b);}
240
250
class
PubSubResponsibleNodeCall
:
public
::BaseCallMessage
251
{
252
protected
:
253
Vector2D
subspacePos_var
;
254
255
private
:
256
void
copy
(
const
PubSubResponsibleNodeCall
& other);
257
258
protected
:
259
// protected and unimplemented operator==(), to prevent accidental usage
260
bool
operator==
(
const
PubSubResponsibleNodeCall
&);
261
262
public
:
263
PubSubResponsibleNodeCall
(
const
char
*name=NULL,
int
kind=0);
264
PubSubResponsibleNodeCall
(
const
PubSubResponsibleNodeCall
& other);
265
virtual
~PubSubResponsibleNodeCall
();
266
PubSubResponsibleNodeCall
&
operator=
(
const
PubSubResponsibleNodeCall
& other);
267
virtual
PubSubResponsibleNodeCall
*
dup
()
const
{
return
new
PubSubResponsibleNodeCall
(*
this
);}
268
virtual
void
parsimPack
(cCommBuffer *b);
269
virtual
void
parsimUnpack
(cCommBuffer *b);
270
271
// field getter/setter methods
272
virtual
Vector2D
&
getSubspacePos
();
273
virtual
const
Vector2D
&
getSubspacePos
()
const
{
return
const_cast<
PubSubResponsibleNodeCall
*
>
(
this
)->
getSubspacePos
();}
274
virtual
void
setSubspacePos
(
const
Vector2D
& subspacePos);
275
};
276
277
inline
void
doPacking
(cCommBuffer *b,
PubSubResponsibleNodeCall
& obj) {obj.
parsimPack
(b);}
278
inline
void
doUnpacking
(cCommBuffer *b,
PubSubResponsibleNodeCall
& obj) {obj.
parsimUnpack
(b);}
279
290
class
PubSubResponsibleNodeResponse
:
public
::BaseResponseMessage
291
{
292
protected
:
293
int
subspaceId_var
;
294
NodeHandle
responsibleNode_var
;
295
296
private
:
297
void
copy
(
const
PubSubResponsibleNodeResponse
& other);
298
299
protected
:
300
// protected and unimplemented operator==(), to prevent accidental usage
301
bool
operator==
(
const
PubSubResponsibleNodeResponse
&);
302
303
public
:
304
PubSubResponsibleNodeResponse
(
const
char
*name=NULL,
int
kind=0);
305
PubSubResponsibleNodeResponse
(
const
PubSubResponsibleNodeResponse
& other);
306
virtual
~PubSubResponsibleNodeResponse
();
307
PubSubResponsibleNodeResponse
&
operator=
(
const
PubSubResponsibleNodeResponse
& other);
308
virtual
PubSubResponsibleNodeResponse
*
dup
()
const
{
return
new
PubSubResponsibleNodeResponse
(*
this
);}
309
virtual
void
parsimPack
(cCommBuffer *b);
310
virtual
void
parsimUnpack
(cCommBuffer *b);
311
312
// field getter/setter methods
313
virtual
int
getSubspaceId
()
const
;
314
virtual
void
setSubspaceId
(
int
subspaceId);
315
virtual
NodeHandle
&
getResponsibleNode
();
316
virtual
const
NodeHandle
&
getResponsibleNode
()
const
{
return
const_cast<
PubSubResponsibleNodeResponse
*
>
(
this
)->
getResponsibleNode
();}
317
virtual
void
setResponsibleNode
(
const
NodeHandle
& responsibleNode);
318
};
319
320
inline
void
doPacking
(cCommBuffer *b,
PubSubResponsibleNodeResponse
& obj) {obj.
parsimPack
(b);}
321
inline
void
doUnpacking
(cCommBuffer *b,
PubSubResponsibleNodeResponse
& obj) {obj.
parsimUnpack
(b);}
322
332
class
PubSubTakeOverSubspaceCall
:
public
::BaseCallMessage
333
{
334
protected
:
335
Vector2D
subspacePos_var
;
336
337
private
:
338
void
copy
(
const
PubSubTakeOverSubspaceCall
& other);
339
340
protected
:
341
// protected and unimplemented operator==(), to prevent accidental usage
342
bool
operator==
(
const
PubSubTakeOverSubspaceCall
&);
343
344
public
:
345
PubSubTakeOverSubspaceCall
(
const
char
*name=NULL,
int
kind=0);
346
PubSubTakeOverSubspaceCall
(
const
PubSubTakeOverSubspaceCall
& other);
347
virtual
~PubSubTakeOverSubspaceCall
();
348
PubSubTakeOverSubspaceCall
&
operator=
(
const
PubSubTakeOverSubspaceCall
& other);
349
virtual
PubSubTakeOverSubspaceCall
*
dup
()
const
{
return
new
PubSubTakeOverSubspaceCall
(*
this
);}
350
virtual
void
parsimPack
(cCommBuffer *b);
351
virtual
void
parsimUnpack
(cCommBuffer *b);
352
353
// field getter/setter methods
354
virtual
Vector2D
&
getSubspacePos
();
355
virtual
const
Vector2D
&
getSubspacePos
()
const
{
return
const_cast<
PubSubTakeOverSubspaceCall
*
>
(
this
)->
getSubspacePos
();}
356
virtual
void
setSubspacePos
(
const
Vector2D
& subspacePos);
357
};
358
359
inline
void
doPacking
(cCommBuffer *b,
PubSubTakeOverSubspaceCall
& obj) {obj.
parsimPack
(b);}
360
inline
void
doUnpacking
(cCommBuffer *b,
PubSubTakeOverSubspaceCall
& obj) {obj.
parsimUnpack
(b);}
361
371
class
PubSubTakeOverSubspaceResponse
:
public
::BaseResponseMessage
372
{
373
protected
:
374
Vector2D
subspacePos_var
;
375
376
private
:
377
void
copy
(
const
PubSubTakeOverSubspaceResponse
& other);
378
379
protected
:
380
// protected and unimplemented operator==(), to prevent accidental usage
381
bool
operator==
(
const
PubSubTakeOverSubspaceResponse
&);
382
383
public
:
384
PubSubTakeOverSubspaceResponse
(
const
char
*name=NULL,
int
kind=0);
385
PubSubTakeOverSubspaceResponse
(
const
PubSubTakeOverSubspaceResponse
& other);
386
virtual
~PubSubTakeOverSubspaceResponse
();
387
PubSubTakeOverSubspaceResponse
&
operator=
(
const
PubSubTakeOverSubspaceResponse
& other);
388
virtual
PubSubTakeOverSubspaceResponse
*
dup
()
const
{
return
new
PubSubTakeOverSubspaceResponse
(*
this
);}
389
virtual
void
parsimPack
(cCommBuffer *b);
390
virtual
void
parsimUnpack
(cCommBuffer *b);
391
392
// field getter/setter methods
393
virtual
Vector2D
&
getSubspacePos
();
394
virtual
const
Vector2D
&
getSubspacePos
()
const
{
return
const_cast<
PubSubTakeOverSubspaceResponse
*
>
(
this
)->
getSubspacePos
();}
395
virtual
void
setSubspacePos
(
const
Vector2D
& subspacePos);
396
};
397
398
inline
void
doPacking
(cCommBuffer *b,
PubSubTakeOverSubspaceResponse
& obj) {obj.
parsimPack
(b);}
399
inline
void
doUnpacking
(cCommBuffer *b,
PubSubTakeOverSubspaceResponse
& obj) {obj.
parsimUnpack
(b);}
400
410
class
PubSubSubscriptionCall
:
public
::BaseCallMessage
411
{
412
protected
:
413
int
subspaceId_var
;
414
415
private
:
416
void
copy
(
const
PubSubSubscriptionCall
& other);
417
418
protected
:
419
// protected and unimplemented operator==(), to prevent accidental usage
420
bool
operator==
(
const
PubSubSubscriptionCall
&);
421
422
public
:
423
PubSubSubscriptionCall
(
const
char
*name=NULL,
int
kind=0);
424
PubSubSubscriptionCall
(
const
PubSubSubscriptionCall
& other);
425
virtual
~PubSubSubscriptionCall
();
426
PubSubSubscriptionCall
&
operator=
(
const
PubSubSubscriptionCall
& other);
427
virtual
PubSubSubscriptionCall
*
dup
()
const
{
return
new
PubSubSubscriptionCall
(*
this
);}
428
virtual
void
parsimPack
(cCommBuffer *b);
429
virtual
void
parsimUnpack
(cCommBuffer *b);
430
431
// field getter/setter methods
432
virtual
int
getSubspaceId
()
const
;
433
virtual
void
setSubspaceId
(
int
subspaceId);
434
};
435
436
inline
void
doPacking
(cCommBuffer *b,
PubSubSubscriptionCall
& obj) {obj.
parsimPack
(b);}
437
inline
void
doUnpacking
(cCommBuffer *b,
PubSubSubscriptionCall
& obj) {obj.
parsimUnpack
(b);}
438
448
class
PubSubSubscriptionResponse
:
public
::BaseResponseMessage
449
{
450
protected
:
451
bool
failed_var
;
452
453
private
:
454
void
copy
(
const
PubSubSubscriptionResponse
& other);
455
456
protected
:
457
// protected and unimplemented operator==(), to prevent accidental usage
458
bool
operator==
(
const
PubSubSubscriptionResponse
&);
459
460
public
:
461
PubSubSubscriptionResponse
(
const
char
*name=NULL,
int
kind=0);
462
PubSubSubscriptionResponse
(
const
PubSubSubscriptionResponse
& other);
463
virtual
~PubSubSubscriptionResponse
();
464
PubSubSubscriptionResponse
&
operator=
(
const
PubSubSubscriptionResponse
& other);
465
virtual
PubSubSubscriptionResponse
*
dup
()
const
{
return
new
PubSubSubscriptionResponse
(*
this
);}
466
virtual
void
parsimPack
(cCommBuffer *b);
467
virtual
void
parsimUnpack
(cCommBuffer *b);
468
469
// field getter/setter methods
470
virtual
bool
getFailed
()
const
;
471
virtual
void
setFailed
(
bool
failed);
472
};
473
474
inline
void
doPacking
(cCommBuffer *b,
PubSubSubscriptionResponse
& obj) {obj.
parsimPack
(b);}
475
inline
void
doUnpacking
(cCommBuffer *b,
PubSubSubscriptionResponse
& obj) {obj.
parsimUnpack
(b);}
476
487
class
PubSubUnsubscriptionMessage
:
public
::BaseOverlayMessage
488
{
489
protected
:
490
int
subspaceId_var
;
491
NodeHandle
src_var
;
492
493
private
:
494
void
copy
(
const
PubSubUnsubscriptionMessage
& other);
495
496
protected
:
497
// protected and unimplemented operator==(), to prevent accidental usage
498
bool
operator==
(
const
PubSubUnsubscriptionMessage
&);
499
500
public
:
501
PubSubUnsubscriptionMessage
(
const
char
*name=NULL,
int
kind=0);
502
PubSubUnsubscriptionMessage
(
const
PubSubUnsubscriptionMessage
& other);
503
virtual
~PubSubUnsubscriptionMessage
();
504
PubSubUnsubscriptionMessage
&
operator=
(
const
PubSubUnsubscriptionMessage
& other);
505
virtual
PubSubUnsubscriptionMessage
*
dup
()
const
{
return
new
PubSubUnsubscriptionMessage
(*
this
);}
506
virtual
void
parsimPack
(cCommBuffer *b);
507
virtual
void
parsimUnpack
(cCommBuffer *b);
508
509
// field getter/setter methods
510
virtual
int
getSubspaceId
()
const
;
511
virtual
void
setSubspaceId
(
int
subspaceId);
512
virtual
NodeHandle
&
getSrc
();
513
virtual
const
NodeHandle
&
getSrc
()
const
{
return
const_cast<
PubSubUnsubscriptionMessage
*
>
(
this
)->
getSrc
();}
514
virtual
void
setSrc
(
const
NodeHandle
& src);
515
};
516
517
inline
void
doPacking
(cCommBuffer *b,
PubSubUnsubscriptionMessage
& obj) {obj.
parsimPack
(b);}
518
inline
void
doUnpacking
(cCommBuffer *b,
PubSubUnsubscriptionMessage
& obj) {obj.
parsimUnpack
(b);}
519
530
class
PubSubHelpCall
:
public
::BaseCallMessage
531
{
532
protected
:
533
int
subspaceId_var
;
534
int
helpType_var
;
535
536
private
:
537
void
copy
(
const
PubSubHelpCall
& other);
538
539
protected
:
540
// protected and unimplemented operator==(), to prevent accidental usage
541
bool
operator==
(
const
PubSubHelpCall
&);
542
543
public
:
544
PubSubHelpCall
(
const
char
*name=NULL,
int
kind=0);
545
PubSubHelpCall
(
const
PubSubHelpCall
& other);
546
virtual
~PubSubHelpCall
();
547
PubSubHelpCall
&
operator=
(
const
PubSubHelpCall
& other);
548
virtual
PubSubHelpCall
*
dup
()
const
{
return
new
PubSubHelpCall
(*
this
);}
549
virtual
void
parsimPack
(cCommBuffer *b);
550
virtual
void
parsimUnpack
(cCommBuffer *b);
551
552
// field getter/setter methods
553
virtual
int
getSubspaceId
()
const
;
554
virtual
void
setSubspaceId
(
int
subspaceId);
555
virtual
int
getHelpType
()
const
;
556
virtual
void
setHelpType
(
int
helpType);
557
};
558
559
inline
void
doPacking
(cCommBuffer *b,
PubSubHelpCall
& obj) {obj.
parsimPack
(b);}
560
inline
void
doUnpacking
(cCommBuffer *b,
PubSubHelpCall
& obj) {obj.
parsimUnpack
(b);}
561
573
class
PubSubHelpResponse
:
public
::BaseResponseMessage
574
{
575
protected
:
576
int
subspaceId_var
;
577
int
helpType_var
;
578
NodeHandle
node_var
;
579
580
private
:
581
void
copy
(
const
PubSubHelpResponse
& other);
582
583
protected
:
584
// protected and unimplemented operator==(), to prevent accidental usage
585
bool
operator==
(
const
PubSubHelpResponse
&);
586
587
public
:
588
PubSubHelpResponse
(
const
char
*name=NULL,
int
kind=0);
589
PubSubHelpResponse
(
const
PubSubHelpResponse
& other);
590
virtual
~PubSubHelpResponse
();
591
PubSubHelpResponse
&
operator=
(
const
PubSubHelpResponse
& other);
592
virtual
PubSubHelpResponse
*
dup
()
const
{
return
new
PubSubHelpResponse
(*
this
);}
593
virtual
void
parsimPack
(cCommBuffer *b);
594
virtual
void
parsimUnpack
(cCommBuffer *b);
595
596
// field getter/setter methods
597
virtual
int
getSubspaceId
()
const
;
598
virtual
void
setSubspaceId
(
int
subspaceId);
599
virtual
int
getHelpType
()
const
;
600
virtual
void
setHelpType
(
int
helpType);
601
virtual
NodeHandle
&
getNode
();
602
virtual
const
NodeHandle
&
getNode
()
const
{
return
const_cast<
PubSubHelpResponse
*
>
(
this
)->
getNode
();}
603
virtual
void
setNode
(
const
NodeHandle
& node);
604
};
605
606
inline
void
doPacking
(cCommBuffer *b,
PubSubHelpResponse
& obj) {obj.
parsimPack
(b);}
607
inline
void
doUnpacking
(cCommBuffer *b,
PubSubHelpResponse
& obj) {obj.
parsimUnpack
(b);}
608
618
class
PubSubIntermediateCall
:
public
::BaseCallMessage
619
{
620
protected
:
621
int
subspaceId_var
;
622
623
private
:
624
void
copy
(
const
PubSubIntermediateCall
& other);
625
626
protected
:
627
// protected and unimplemented operator==(), to prevent accidental usage
628
bool
operator==
(
const
PubSubIntermediateCall
&);
629
630
public
:
631
PubSubIntermediateCall
(
const
char
*name=NULL,
int
kind=0);
632
PubSubIntermediateCall
(
const
PubSubIntermediateCall
& other);
633
virtual
~PubSubIntermediateCall
();
634
PubSubIntermediateCall
&
operator=
(
const
PubSubIntermediateCall
& other);
635
virtual
PubSubIntermediateCall
*
dup
()
const
{
return
new
PubSubIntermediateCall
(*
this
);}
636
virtual
void
parsimPack
(cCommBuffer *b);
637
virtual
void
parsimUnpack
(cCommBuffer *b);
638
639
// field getter/setter methods
640
virtual
int
getSubspaceId
()
const
;
641
virtual
void
setSubspaceId
(
int
subspaceId);
642
};
643
644
inline
void
doPacking
(cCommBuffer *b,
PubSubIntermediateCall
& obj) {obj.
parsimPack
(b);}
645
inline
void
doUnpacking
(cCommBuffer *b,
PubSubIntermediateCall
& obj) {obj.
parsimUnpack
(b);}
646
656
class
PubSubIntermediateResponse
:
public
::BaseResponseMessage
657
{
658
protected
:
659
int
subspaceId_var
;
660
661
private
:
662
void
copy
(
const
PubSubIntermediateResponse
& other);
663
664
protected
:
665
// protected and unimplemented operator==(), to prevent accidental usage
666
bool
operator==
(
const
PubSubIntermediateResponse
&);
667
668
public
:
669
PubSubIntermediateResponse
(
const
char
*name=NULL,
int
kind=0);
670
PubSubIntermediateResponse
(
const
PubSubIntermediateResponse
& other);
671
virtual
~PubSubIntermediateResponse
();
672
PubSubIntermediateResponse
&
operator=
(
const
PubSubIntermediateResponse
& other);
673
virtual
PubSubIntermediateResponse
*
dup
()
const
{
return
new
PubSubIntermediateResponse
(*
this
);}
674
virtual
void
parsimPack
(cCommBuffer *b);
675
virtual
void
parsimUnpack
(cCommBuffer *b);
676
677
// field getter/setter methods
678
virtual
int
getSubspaceId
()
const
;
679
virtual
void
setSubspaceId
(
int
subspaceId);
680
};
681
682
inline
void
doPacking
(cCommBuffer *b,
PubSubIntermediateResponse
& obj) {obj.
parsimPack
(b);}
683
inline
void
doUnpacking
(cCommBuffer *b,
PubSubIntermediateResponse
& obj) {obj.
parsimUnpack
(b);}
684
697
class
PubSubBackupCall
:
public
::BaseCallMessage
698
{
699
protected
:
700
int
subspaceId_var
;
701
NodeHandle
*
intermediates_var
;
// array ptr
702
unsigned
int
intermediates_arraysize
;
703
NodeHandle
*
children_var
;
// array ptr
704
unsigned
int
children_arraysize
;
705
int
*
childrenPos_var
;
// array ptr
706
unsigned
int
childrenPos_arraysize
;
707
708
private
:
709
void
copy
(
const
PubSubBackupCall
& other);
710
711
protected
:
712
// protected and unimplemented operator==(), to prevent accidental usage
713
bool
operator==
(
const
PubSubBackupCall
&);
714
715
public
:
716
PubSubBackupCall
(
const
char
*name=NULL,
int
kind=0);
717
PubSubBackupCall
(
const
PubSubBackupCall
& other);
718
virtual
~PubSubBackupCall
();
719
PubSubBackupCall
&
operator=
(
const
PubSubBackupCall
& other);
720
virtual
PubSubBackupCall
*
dup
()
const
{
return
new
PubSubBackupCall
(*
this
);}
721
virtual
void
parsimPack
(cCommBuffer *b);
722
virtual
void
parsimUnpack
(cCommBuffer *b);
723
724
// field getter/setter methods
725
virtual
int
getSubspaceId
()
const
;
726
virtual
void
setSubspaceId
(
int
subspaceId);
727
virtual
void
setIntermediatesArraySize
(
unsigned
int
size);
728
virtual
unsigned
int
getIntermediatesArraySize
()
const
;
729
virtual
NodeHandle
&
getIntermediates
(
unsigned
int
k);
730
virtual
const
NodeHandle
&
getIntermediates
(
unsigned
int
k)
const
{
return
const_cast<
PubSubBackupCall
*
>
(
this
)->
getIntermediates
(k);}
731
virtual
void
setIntermediates
(
unsigned
int
k,
const
NodeHandle
& intermediates);
732
virtual
void
setChildrenArraySize
(
unsigned
int
size);
733
virtual
unsigned
int
getChildrenArraySize
()
const
;
734
virtual
NodeHandle
&
getChildren
(
unsigned
int
k);
735
virtual
const
NodeHandle
&
getChildren
(
unsigned
int
k)
const
{
return
const_cast<
PubSubBackupCall
*
>
(
this
)->
getChildren
(k);}
736
virtual
void
setChildren
(
unsigned
int
k,
const
NodeHandle
& children);
737
virtual
void
setChildrenPosArraySize
(
unsigned
int
size);
738
virtual
unsigned
int
getChildrenPosArraySize
()
const
;
739
virtual
int
getChildrenPos
(
unsigned
int
k)
const
;
740
virtual
void
setChildrenPos
(
unsigned
int
k,
int
childrenPos);
741
};
742
743
inline
void
doPacking
(cCommBuffer *b,
PubSubBackupCall
& obj) {obj.
parsimPack
(b);}
744
inline
void
doUnpacking
(cCommBuffer *b,
PubSubBackupCall
& obj) {obj.
parsimUnpack
(b);}
745
755
class
PubSubBackupResponse
:
public
::BaseResponseMessage
756
{
757
protected
:
758
int
subspaceId_var
;
759
760
private
:
761
void
copy
(
const
PubSubBackupResponse
& other);
762
763
protected
:
764
// protected and unimplemented operator==(), to prevent accidental usage
765
bool
operator==
(
const
PubSubBackupResponse
&);
766
767
public
:
768
PubSubBackupResponse
(
const
char
*name=NULL,
int
kind=0);
769
PubSubBackupResponse
(
const
PubSubBackupResponse
& other);
770
virtual
~PubSubBackupResponse
();
771
PubSubBackupResponse
&
operator=
(
const
PubSubBackupResponse
& other);
772
virtual
PubSubBackupResponse
*
dup
()
const
{
return
new
PubSubBackupResponse
(*
this
);}
773
virtual
void
parsimPack
(cCommBuffer *b);
774
virtual
void
parsimUnpack
(cCommBuffer *b);
775
776
// field getter/setter methods
777
virtual
int
getSubspaceId
()
const
;
778
virtual
void
setSubspaceId
(
int
subspaceId);
779
};
780
781
inline
void
doPacking
(cCommBuffer *b,
PubSubBackupResponse
& obj) {obj.
parsimPack
(b);}
782
inline
void
doUnpacking
(cCommBuffer *b,
PubSubBackupResponse
& obj) {obj.
parsimUnpack
(b);}
783
794
class
PubSubPingCall
:
public
::BaseCallMessage
795
{
796
protected
:
797
int
subspaceId_var
;
798
int
pingType_var
;
799
800
private
:
801
void
copy
(
const
PubSubPingCall
& other);
802
803
protected
:
804
// protected and unimplemented operator==(), to prevent accidental usage
805
bool
operator==
(
const
PubSubPingCall
&);
806
807
public
:
808
PubSubPingCall
(
const
char
*name=NULL,
int
kind=0);
809
PubSubPingCall
(
const
PubSubPingCall
& other);
810
virtual
~PubSubPingCall
();
811
PubSubPingCall
&
operator=
(
const
PubSubPingCall
& other);
812
virtual
PubSubPingCall
*
dup
()
const
{
return
new
PubSubPingCall
(*
this
);}
813
virtual
void
parsimPack
(cCommBuffer *b);
814
virtual
void
parsimUnpack
(cCommBuffer *b);
815
816
// field getter/setter methods
817
virtual
int
getSubspaceId
()
const
;
818
virtual
void
setSubspaceId
(
int
subspaceId);
819
virtual
int
getPingType
()
const
;
820
virtual
void
setPingType
(
int
pingType);
821
};
822
823
inline
void
doPacking
(cCommBuffer *b,
PubSubPingCall
& obj) {obj.
parsimPack
(b);}
824
inline
void
doUnpacking
(cCommBuffer *b,
PubSubPingCall
& obj) {obj.
parsimUnpack
(b);}
825
835
class
PubSubPingResponse
:
public
::BaseResponseMessage
836
{
837
protected
:
838
int
subspaceId_var
;
839
840
private
:
841
void
copy
(
const
PubSubPingResponse
& other);
842
843
protected
:
844
// protected and unimplemented operator==(), to prevent accidental usage
845
bool
operator==
(
const
PubSubPingResponse
&);
846
847
public
:
848
PubSubPingResponse
(
const
char
*name=NULL,
int
kind=0);
849
PubSubPingResponse
(
const
PubSubPingResponse
& other);
850
virtual
~PubSubPingResponse
();
851
PubSubPingResponse
&
operator=
(
const
PubSubPingResponse
& other);
852
virtual
PubSubPingResponse
*
dup
()
const
{
return
new
PubSubPingResponse
(*
this
);}
853
virtual
void
parsimPack
(cCommBuffer *b);
854
virtual
void
parsimUnpack
(cCommBuffer *b);
855
856
// field getter/setter methods
857
virtual
int
getSubspaceId
()
const
;
858
virtual
void
setSubspaceId
(
int
subspaceId);
859
};
860
861
inline
void
doPacking
(cCommBuffer *b,
PubSubPingResponse
& obj) {obj.
parsimPack
(b);}
862
inline
void
doUnpacking
(cCommBuffer *b,
PubSubPingResponse
& obj) {obj.
parsimUnpack
(b);}
863
874
class
PubSubReplacementMessage
:
public
::BaseOverlayMessage
875
{
876
protected
:
877
int
subspaceId_var
;
878
NodeHandle
newResponsibleNode_var
;
879
880
private
:
881
void
copy
(
const
PubSubReplacementMessage
& other);
882
883
protected
:
884
// protected and unimplemented operator==(), to prevent accidental usage
885
bool
operator==
(
const
PubSubReplacementMessage
&);
886
887
public
:
888
PubSubReplacementMessage
(
const
char
*name=NULL,
int
kind=0);
889
PubSubReplacementMessage
(
const
PubSubReplacementMessage
& other);
890
virtual
~PubSubReplacementMessage
();
891
PubSubReplacementMessage
&
operator=
(
const
PubSubReplacementMessage
& other);
892
virtual
PubSubReplacementMessage
*
dup
()
const
{
return
new
PubSubReplacementMessage
(*
this
);}
893
virtual
void
parsimPack
(cCommBuffer *b);
894
virtual
void
parsimUnpack
(cCommBuffer *b);
895
896
// field getter/setter methods
897
virtual
int
getSubspaceId
()
const
;
898
virtual
void
setSubspaceId
(
int
subspaceId);
899
virtual
NodeHandle
&
getNewResponsibleNode
();
900
virtual
const
NodeHandle
&
getNewResponsibleNode
()
const
{
return
const_cast<
PubSubReplacementMessage
*
>
(
this
)->
getNewResponsibleNode
();}
901
virtual
void
setNewResponsibleNode
(
const
NodeHandle
& newResponsibleNode);
902
};
903
904
inline
void
doPacking
(cCommBuffer *b,
PubSubReplacementMessage
& obj) {obj.
parsimPack
(b);}
905
inline
void
doUnpacking
(cCommBuffer *b,
PubSubReplacementMessage
& obj) {obj.
parsimUnpack
(b);}
906
916
class
PubSubFailedNodeMessage
:
public
::BaseOverlayMessage
917
{
918
protected
:
919
TransportAddress
failedNode_var
;
920
921
private
:
922
void
copy
(
const
PubSubFailedNodeMessage
& other);
923
924
protected
:
925
// protected and unimplemented operator==(), to prevent accidental usage
926
bool
operator==
(
const
PubSubFailedNodeMessage
&);
927
928
public
:
929
PubSubFailedNodeMessage
(
const
char
*name=NULL,
int
kind=0);
930
PubSubFailedNodeMessage
(
const
PubSubFailedNodeMessage
& other);
931
virtual
~PubSubFailedNodeMessage
();
932
PubSubFailedNodeMessage
&
operator=
(
const
PubSubFailedNodeMessage
& other);
933
virtual
PubSubFailedNodeMessage
*
dup
()
const
{
return
new
PubSubFailedNodeMessage
(*
this
);}
934
virtual
void
parsimPack
(cCommBuffer *b);
935
virtual
void
parsimUnpack
(cCommBuffer *b);
936
937
// field getter/setter methods
938
virtual
TransportAddress
&
getFailedNode
();
939
virtual
const
TransportAddress
&
getFailedNode
()
const
{
return
const_cast<
PubSubFailedNodeMessage
*
>
(
this
)->
getFailedNode
();}
940
virtual
void
setFailedNode
(
const
TransportAddress
& failedNode);
941
};
942
943
inline
void
doPacking
(cCommBuffer *b,
PubSubFailedNodeMessage
& obj) {obj.
parsimPack
(b);}
944
inline
void
doUnpacking
(cCommBuffer *b,
PubSubFailedNodeMessage
& obj) {obj.
parsimUnpack
(b);}
945
956
class
PubSubNodeLeftMessage
:
public
::BaseOverlayMessage
957
{
958
protected
:
959
int
subspaceId_var
;
960
NodeHandle
node_var
;
961
962
private
:
963
void
copy
(
const
PubSubNodeLeftMessage
& other);
964
965
protected
:
966
// protected and unimplemented operator==(), to prevent accidental usage
967
bool
operator==
(
const
PubSubNodeLeftMessage
&);
968
969
public
:
970
PubSubNodeLeftMessage
(
const
char
*name=NULL,
int
kind=0);
971
PubSubNodeLeftMessage
(
const
PubSubNodeLeftMessage
& other);
972
virtual
~PubSubNodeLeftMessage
();
973
PubSubNodeLeftMessage
&
operator=
(
const
PubSubNodeLeftMessage
& other);
974
virtual
PubSubNodeLeftMessage
*
dup
()
const
{
return
new
PubSubNodeLeftMessage
(*
this
);}
975
virtual
void
parsimPack
(cCommBuffer *b);
976
virtual
void
parsimUnpack
(cCommBuffer *b);
977
978
// field getter/setter methods
979
virtual
int
getSubspaceId
()
const
;
980
virtual
void
setSubspaceId
(
int
subspaceId);
981
virtual
NodeHandle
&
getNode
();
982
virtual
const
NodeHandle
&
getNode
()
const
{
return
const_cast<
PubSubNodeLeftMessage
*
>
(
this
)->
getNode
();}
983
virtual
void
setNode
(
const
NodeHandle
& node);
984
};
985
986
inline
void
doPacking
(cCommBuffer *b,
PubSubNodeLeftMessage
& obj) {obj.
parsimPack
(b);}
987
inline
void
doUnpacking
(cCommBuffer *b,
PubSubNodeLeftMessage
& obj) {obj.
parsimUnpack
(b);}
988
999
class
PubSubAdoptChildCall
:
public
::BaseCallMessage
1000
{
1001
protected
:
1002
int
subspaceId_var
;
1003
NodeHandle
child_var
;
1004
1005
private
:
1006
void
copy
(
const
PubSubAdoptChildCall
& other);
1007
1008
protected
:
1009
// protected and unimplemented operator==(), to prevent accidental usage
1010
bool
operator==
(
const
PubSubAdoptChildCall
&);
1011
1012
public
:
1013
PubSubAdoptChildCall
(
const
char
*name=NULL,
int
kind=0);
1014
PubSubAdoptChildCall
(
const
PubSubAdoptChildCall
& other);
1015
virtual
~PubSubAdoptChildCall
();
1016
PubSubAdoptChildCall
&
operator=
(
const
PubSubAdoptChildCall
& other);
1017
virtual
PubSubAdoptChildCall
*
dup
()
const
{
return
new
PubSubAdoptChildCall
(*
this
);}
1018
virtual
void
parsimPack
(cCommBuffer *b);
1019
virtual
void
parsimUnpack
(cCommBuffer *b);
1020
1021
// field getter/setter methods
1022
virtual
int
getSubspaceId
()
const
;
1023
virtual
void
setSubspaceId
(
int
subspaceId);
1024
virtual
NodeHandle
&
getChild
();
1025
virtual
const
NodeHandle
&
getChild
()
const
{
return
const_cast<
PubSubAdoptChildCall
*
>
(
this
)->
getChild
();}
1026
virtual
void
setChild
(
const
NodeHandle
& child);
1027
};
1028
1029
inline
void
doPacking
(cCommBuffer *b,
PubSubAdoptChildCall
& obj) {obj.
parsimPack
(b);}
1030
inline
void
doUnpacking
(cCommBuffer *b,
PubSubAdoptChildCall
& obj) {obj.
parsimUnpack
(b);}
1031
1042
class
PubSubAdoptChildResponse
:
public
::BaseResponseMessage
1043
{
1044
protected
:
1045
int
subspaceId_var
;
1046
NodeHandle
child_var
;
1047
1048
private
:
1049
void
copy
(
const
PubSubAdoptChildResponse
& other);
1050
1051
protected
:
1052
// protected and unimplemented operator==(), to prevent accidental usage
1053
bool
operator==
(
const
PubSubAdoptChildResponse
&);
1054
1055
public
:
1056
PubSubAdoptChildResponse
(
const
char
*name=NULL,
int
kind=0);
1057
PubSubAdoptChildResponse
(
const
PubSubAdoptChildResponse
& other);
1058
virtual
~PubSubAdoptChildResponse
();
1059
PubSubAdoptChildResponse
&
operator=
(
const
PubSubAdoptChildResponse
& other);
1060
virtual
PubSubAdoptChildResponse
*
dup
()
const
{
return
new
PubSubAdoptChildResponse
(*
this
);}
1061
virtual
void
parsimPack
(cCommBuffer *b);
1062
virtual
void
parsimUnpack
(cCommBuffer *b);
1063
1064
// field getter/setter methods
1065
virtual
int
getSubspaceId
()
const
;
1066
virtual
void
setSubspaceId
(
int
subspaceId);
1067
virtual
NodeHandle
&
getChild
();
1068
virtual
const
NodeHandle
&
getChild
()
const
{
return
const_cast<
PubSubAdoptChildResponse
*
>
(
this
)->
getChild
();}
1069
virtual
void
setChild
(
const
NodeHandle
& child);
1070
};
1071
1072
inline
void
doPacking
(cCommBuffer *b,
PubSubAdoptChildResponse
& obj) {obj.
parsimPack
(b);}
1073
inline
void
doUnpacking
(cCommBuffer *b,
PubSubAdoptChildResponse
& obj) {obj.
parsimUnpack
(b);}
1074
1084
class
PubSubReleaseIntermediateMessage
:
public
::BaseOverlayMessage
1085
{
1086
protected
:
1087
int
subspaceId_var
;
1088
1089
private
:
1090
void
copy
(
const
PubSubReleaseIntermediateMessage
& other);
1091
1092
protected
:
1093
// protected and unimplemented operator==(), to prevent accidental usage
1094
bool
operator==
(
const
PubSubReleaseIntermediateMessage
&);
1095
1096
public
:
1097
PubSubReleaseIntermediateMessage
(
const
char
*name=NULL,
int
kind=0);
1098
PubSubReleaseIntermediateMessage
(
const
PubSubReleaseIntermediateMessage
& other);
1099
virtual
~PubSubReleaseIntermediateMessage
();
1100
PubSubReleaseIntermediateMessage
&
operator=
(
const
PubSubReleaseIntermediateMessage
& other);
1101
virtual
PubSubReleaseIntermediateMessage
*
dup
()
const
{
return
new
PubSubReleaseIntermediateMessage
(*
this
);}
1102
virtual
void
parsimPack
(cCommBuffer *b);
1103
virtual
void
parsimUnpack
(cCommBuffer *b);
1104
1105
// field getter/setter methods
1106
virtual
int
getSubspaceId
()
const
;
1107
virtual
void
setSubspaceId
(
int
subspaceId);
1108
};
1109
1110
inline
void
doPacking
(cCommBuffer *b,
PubSubReleaseIntermediateMessage
& obj) {obj.
parsimPack
(b);}
1111
inline
void
doUnpacking
(cCommBuffer *b,
PubSubReleaseIntermediateMessage
& obj) {obj.
parsimUnpack
(b);}
1112
1123
class
PubSubHelpReleaseMessage
:
public
::BaseOverlayMessage
1124
{
1125
protected
:
1126
int
subspaceId_var
;
1127
NodeHandle
node_var
;
1128
1129
private
:
1130
void
copy
(
const
PubSubHelpReleaseMessage
& other);
1131
1132
protected
:
1133
// protected and unimplemented operator==(), to prevent accidental usage
1134
bool
operator==
(
const
PubSubHelpReleaseMessage
&);
1135
1136
public
:
1137
PubSubHelpReleaseMessage
(
const
char
*name=NULL,
int
kind=0);
1138
PubSubHelpReleaseMessage
(
const
PubSubHelpReleaseMessage
& other);
1139
virtual
~PubSubHelpReleaseMessage
();
1140
PubSubHelpReleaseMessage
&
operator=
(
const
PubSubHelpReleaseMessage
& other);
1141
virtual
PubSubHelpReleaseMessage
*
dup
()
const
{
return
new
PubSubHelpReleaseMessage
(*
this
);}
1142
virtual
void
parsimPack
(cCommBuffer *b);
1143
virtual
void
parsimUnpack
(cCommBuffer *b);
1144
1145
// field getter/setter methods
1146
virtual
int
getSubspaceId
()
const
;
1147
virtual
void
setSubspaceId
(
int
subspaceId);
1148
virtual
NodeHandle
&
getNode
();
1149
virtual
const
NodeHandle
&
getNode
()
const
{
return
const_cast<
PubSubHelpReleaseMessage
*
>
(
this
)->
getNode
();}
1150
virtual
void
setNode
(
const
NodeHandle
& node);
1151
};
1152
1153
inline
void
doPacking
(cCommBuffer *b,
PubSubHelpReleaseMessage
& obj) {obj.
parsimPack
(b);}
1154
inline
void
doUnpacking
(cCommBuffer *b,
PubSubHelpReleaseMessage
& obj) {obj.
parsimUnpack
(b);}
1155
1168
class
PubSubBackupSubscriptionMessage
:
public
::BaseOverlayMessage
1169
{
1170
protected
:
1171
int
subspaceId_var
;
1172
NodeHandle
child_var
;
1173
NodeHandle
parent_var
;
1174
NodeHandle
oldParent_var
;
1175
1176
private
:
1177
void
copy
(
const
PubSubBackupSubscriptionMessage
& other);
1178
1179
protected
:
1180
// protected and unimplemented operator==(), to prevent accidental usage
1181
bool
operator==
(
const
PubSubBackupSubscriptionMessage
&);
1182
1183
public
:
1184
PubSubBackupSubscriptionMessage
(
const
char
*name=NULL,
int
kind=0);
1185
PubSubBackupSubscriptionMessage
(
const
PubSubBackupSubscriptionMessage
& other);
1186
virtual
~PubSubBackupSubscriptionMessage
();
1187
PubSubBackupSubscriptionMessage
&
operator=
(
const
PubSubBackupSubscriptionMessage
& other);
1188
virtual
PubSubBackupSubscriptionMessage
*
dup
()
const
{
return
new
PubSubBackupSubscriptionMessage
(*
this
);}
1189
virtual
void
parsimPack
(cCommBuffer *b);
1190
virtual
void
parsimUnpack
(cCommBuffer *b);
1191
1192
// field getter/setter methods
1193
virtual
int
getSubspaceId
()
const
;
1194
virtual
void
setSubspaceId
(
int
subspaceId);
1195
virtual
NodeHandle
&
getChild
();
1196
virtual
const
NodeHandle
&
getChild
()
const
{
return
const_cast<
PubSubBackupSubscriptionMessage
*
>
(
this
)->
getChild
();}
1197
virtual
void
setChild
(
const
NodeHandle
& child);
1198
virtual
NodeHandle
&
getParent
();
1199
virtual
const
NodeHandle
&
getParent
()
const
{
return
const_cast<
PubSubBackupSubscriptionMessage
*
>
(
this
)->
getParent
();}
1200
virtual
void
setParent
(
const
NodeHandle
& parent);
1201
virtual
NodeHandle
&
getOldParent
();
1202
virtual
const
NodeHandle
&
getOldParent
()
const
{
return
const_cast<
PubSubBackupSubscriptionMessage
*
>
(
this
)->
getOldParent
();}
1203
virtual
void
setOldParent
(
const
NodeHandle
& oldParent);
1204
};
1205
1206
inline
void
doPacking
(cCommBuffer *b,
PubSubBackupSubscriptionMessage
& obj) {obj.
parsimPack
(b);}
1207
inline
void
doUnpacking
(cCommBuffer *b,
PubSubBackupSubscriptionMessage
& obj) {obj.
parsimUnpack
(b);}
1208
1220
class
PubSubBackupIntermediateMessage
:
public
::BaseOverlayMessage
1221
{
1222
protected
:
1223
int
subspaceId_var
;
1224
NodeHandle
node_var
;
1225
int
pos_var
;
1226
1227
private
:
1228
void
copy
(
const
PubSubBackupIntermediateMessage
& other);
1229
1230
protected
:
1231
// protected and unimplemented operator==(), to prevent accidental usage
1232
bool
operator==
(
const
PubSubBackupIntermediateMessage
&);
1233
1234
public
:
1235
PubSubBackupIntermediateMessage
(
const
char
*name=NULL,
int
kind=0);
1236
PubSubBackupIntermediateMessage
(
const
PubSubBackupIntermediateMessage
& other);
1237
virtual
~PubSubBackupIntermediateMessage
();
1238
PubSubBackupIntermediateMessage
&
operator=
(
const
PubSubBackupIntermediateMessage
& other);
1239
virtual
PubSubBackupIntermediateMessage
*
dup
()
const
{
return
new
PubSubBackupIntermediateMessage
(*
this
);}
1240
virtual
void
parsimPack
(cCommBuffer *b);
1241
virtual
void
parsimUnpack
(cCommBuffer *b);
1242
1243
// field getter/setter methods
1244
virtual
int
getSubspaceId
()
const
;
1245
virtual
void
setSubspaceId
(
int
subspaceId);
1246
virtual
NodeHandle
&
getNode
();
1247
virtual
const
NodeHandle
&
getNode
()
const
{
return
const_cast<
PubSubBackupIntermediateMessage
*
>
(
this
)->
getNode
();}
1248
virtual
void
setNode
(
const
NodeHandle
& node);
1249
virtual
int
getPos
()
const
;
1250
virtual
void
setPos
(
int
pos);
1251
};
1252
1253
inline
void
doPacking
(cCommBuffer *b,
PubSubBackupIntermediateMessage
& obj) {obj.
parsimPack
(b);}
1254
inline
void
doUnpacking
(cCommBuffer *b,
PubSubBackupIntermediateMessage
& obj) {obj.
parsimUnpack
(b);}
1255
1267
class
PubSubBackupUnsubscribeMessage
:
public
::BaseOverlayMessage
1268
{
1269
protected
:
1270
int
subspaceId_var
;
1271
NodeHandle
child_var
;
1272
NodeHandle
intermediate_var
;
1273
1274
private
:
1275
void
copy
(
const
PubSubBackupUnsubscribeMessage
& other);
1276
1277
protected
:
1278
// protected and unimplemented operator==(), to prevent accidental usage
1279
bool
operator==
(
const
PubSubBackupUnsubscribeMessage
&);
1280
1281
public
:
1282
PubSubBackupUnsubscribeMessage
(
const
char
*name=NULL,
int
kind=0);
1283
PubSubBackupUnsubscribeMessage
(
const
PubSubBackupUnsubscribeMessage
& other);
1284
virtual
~PubSubBackupUnsubscribeMessage
();
1285
PubSubBackupUnsubscribeMessage
&
operator=
(
const
PubSubBackupUnsubscribeMessage
& other);
1286
virtual
PubSubBackupUnsubscribeMessage
*
dup
()
const
{
return
new
PubSubBackupUnsubscribeMessage
(*
this
);}
1287
virtual
void
parsimPack
(cCommBuffer *b);
1288
virtual
void
parsimUnpack
(cCommBuffer *b);
1289
1290
// field getter/setter methods
1291
virtual
int
getSubspaceId
()
const
;
1292
virtual
void
setSubspaceId
(
int
subspaceId);
1293
virtual
NodeHandle
&
getChild
();
1294
virtual
const
NodeHandle
&
getChild
()
const
{
return
const_cast<
PubSubBackupUnsubscribeMessage
*
>
(
this
)->
getChild
();}
1295
virtual
void
setChild
(
const
NodeHandle
& child);
1296
virtual
NodeHandle
&
getIntermediate
();
1297
virtual
const
NodeHandle
&
getIntermediate
()
const
{
return
const_cast<
PubSubBackupUnsubscribeMessage
*
>
(
this
)->
getIntermediate
();}
1298
virtual
void
setIntermediate
(
const
NodeHandle
& intermediate);
1299
};
1300
1301
inline
void
doPacking
(cCommBuffer *b,
PubSubBackupUnsubscribeMessage
& obj) {obj.
parsimPack
(b);}
1302
inline
void
doUnpacking
(cCommBuffer *b,
PubSubBackupUnsubscribeMessage
& obj) {obj.
parsimUnpack
(b);}
1303
1316
class
PubSubMoveMessage
:
public
::BaseOverlayMessage
1317
{
1318
protected
:
1319
int
subspaceId_var
;
1320
simtime_t
timestamp_var
;
1321
NodeHandle
player_var
;
1322
Vector2D
position_var
;
1323
1324
private
:
1325
void
copy
(
const
PubSubMoveMessage
& other);
1326
1327
protected
:
1328
// protected and unimplemented operator==(), to prevent accidental usage
1329
bool
operator==
(
const
PubSubMoveMessage
&);
1330
1331
public
:
1332
PubSubMoveMessage
(
const
char
*name=NULL,
int
kind=0);
1333
PubSubMoveMessage
(
const
PubSubMoveMessage
& other);
1334
virtual
~PubSubMoveMessage
();
1335
PubSubMoveMessage
&
operator=
(
const
PubSubMoveMessage
& other);
1336
virtual
PubSubMoveMessage
*
dup
()
const
{
return
new
PubSubMoveMessage
(*
this
);}
1337
virtual
void
parsimPack
(cCommBuffer *b);
1338
virtual
void
parsimUnpack
(cCommBuffer *b);
1339
1340
// field getter/setter methods
1341
virtual
int
getSubspaceId
()
const
;
1342
virtual
void
setSubspaceId
(
int
subspaceId);
1343
virtual
simtime_t
getTimestamp
()
const
;
1344
virtual
void
setTimestamp
(simtime_t timestamp);
1345
virtual
NodeHandle
&
getPlayer
();
1346
virtual
const
NodeHandle
&
getPlayer
()
const
{
return
const_cast<
PubSubMoveMessage
*
>
(
this
)->
getPlayer
();}
1347
virtual
void
setPlayer
(
const
NodeHandle
& player);
1348
virtual
Vector2D
&
getPosition
();
1349
virtual
const
Vector2D
&
getPosition
()
const
{
return
const_cast<
PubSubMoveMessage
*
>
(
this
)->
getPosition
();}
1350
virtual
void
setPosition
(
const
Vector2D
& position);
1351
};
1352
1353
inline
void
doPacking
(cCommBuffer *b,
PubSubMoveMessage
& obj) {obj.
parsimPack
(b);}
1354
inline
void
doUnpacking
(cCommBuffer *b,
PubSubMoveMessage
& obj) {obj.
parsimUnpack
(b);}
1355
1369
class
PubSubMoveListMessage
:
public
::BaseOverlayMessage
1370
{
1371
protected
:
1372
int
subspaceId_var
;
1373
simtime_t
timestamp_var
;
1374
NodeHandle
*
player_var
;
// array ptr
1375
unsigned
int
player_arraysize
;
1376
Vector2D
*
position_var
;
// array ptr
1377
unsigned
int
position_arraysize
;
1378
simtime_t *
positionAge_var
;
// array ptr
1379
unsigned
int
positionAge_arraysize
;
1380
1381
private
:
1382
void
copy
(
const
PubSubMoveListMessage
& other);
1383
1384
protected
:
1385
// protected and unimplemented operator==(), to prevent accidental usage
1386
bool
operator==
(
const
PubSubMoveListMessage
&);
1387
1388
public
:
1389
PubSubMoveListMessage
(
const
char
*name=NULL,
int
kind=0);
1390
PubSubMoveListMessage
(
const
PubSubMoveListMessage
& other);
1391
virtual
~PubSubMoveListMessage
();
1392
PubSubMoveListMessage
&
operator=
(
const
PubSubMoveListMessage
& other);
1393
virtual
PubSubMoveListMessage
*
dup
()
const
{
return
new
PubSubMoveListMessage
(*
this
);}
1394
virtual
void
parsimPack
(cCommBuffer *b);
1395
virtual
void
parsimUnpack
(cCommBuffer *b);
1396
1397
// field getter/setter methods
1398
virtual
int
getSubspaceId
()
const
;
1399
virtual
void
setSubspaceId
(
int
subspaceId);
1400
virtual
simtime_t
getTimestamp
()
const
;
1401
virtual
void
setTimestamp
(simtime_t timestamp);
1402
virtual
void
setPlayerArraySize
(
unsigned
int
size);
1403
virtual
unsigned
int
getPlayerArraySize
()
const
;
1404
virtual
NodeHandle
&
getPlayer
(
unsigned
int
k);
1405
virtual
const
NodeHandle
&
getPlayer
(
unsigned
int
k)
const
{
return
const_cast<
PubSubMoveListMessage
*
>
(
this
)->
getPlayer
(k);}
1406
virtual
void
setPlayer
(
unsigned
int
k,
const
NodeHandle
& player);
1407
virtual
void
setPositionArraySize
(
unsigned
int
size);
1408
virtual
unsigned
int
getPositionArraySize
()
const
;
1409
virtual
Vector2D
&
getPosition
(
unsigned
int
k);
1410
virtual
const
Vector2D
&
getPosition
(
unsigned
int
k)
const
{
return
const_cast<
PubSubMoveListMessage
*
>
(
this
)->
getPosition
(k);}
1411
virtual
void
setPosition
(
unsigned
int
k,
const
Vector2D
& position);
1412
virtual
void
setPositionAgeArraySize
(
unsigned
int
size);
1413
virtual
unsigned
int
getPositionAgeArraySize
()
const
;
1414
virtual
simtime_t
getPositionAge
(
unsigned
int
k)
const
;
1415
virtual
void
setPositionAge
(
unsigned
int
k, simtime_t positionAge);
1416
};
1417
1418
inline
void
doPacking
(cCommBuffer *b,
PubSubMoveListMessage
& obj) {obj.
parsimPack
(b);}
1419
inline
void
doUnpacking
(cCommBuffer *b,
PubSubMoveListMessage
& obj) {obj.
parsimUnpack
(b);}
1420
1421
1422
#endif // _PUBSUBMESSAGE_M_H_
src
overlay
pubsubmmog
PubSubMessage_m.h
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2