VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmsgs
ifEmbarkationSlotInformationResponse.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfExtProtocol/simInterfaceContent.h
>
12
#include <
vrfExtProtocol/rangedObjectType.h
>
13
#include "
vrfmsgs/vrfmsgsDefines.h
"
14
#include "
vrfmsgs/messageTypes.h
"
15
#include "
vrfutil/rwUUID.h
"
16
17
#include <map>
18
20
21
class
DT_DLL_vrfmsgs
DtIfEmbarkationSlotInformationResponse
:
public
DtSimInterfaceContent
22
{
23
public
:
24
25
struct
SlotInformation
26
{
27
DtString
mySlotName
;
28
DtString
mySlotType
;
29
DtRangedObjectType
myEntityType
;
30
DtVector
mySlotPosition
;
31
bool
myOccupied
;
32
bool
myAvailable
;
33
};
34
35
typedef
std::map<int, SlotInformation>
SlotInformationMap
;
36
37
public
:
39
DtIfEmbarkationSlotInformationResponse
();
40
42
DtIfEmbarkationSlotInformationResponse
(
const
DtIfEmbarkationSlotInformationResponse
& orig);
43
45
const
DtIfEmbarkationSlotInformationResponse
&
operator=
(
const
DtIfEmbarkationSlotInformationResponse
& orig);
46
47
virtual
~
DtIfEmbarkationSlotInformationResponse
();
48
49
virtual
int
type
()
const
;
50
51
virtual
DtSimInterfaceContent
*
clone
()
const
;
52
53
virtual
int
netRepSize
()
const
;
54
virtual
bool
setFromNet
(
const
char
* contentBuffer,
55
unsigned
contentSize);
56
virtual
bool
setToNet
();
57
58
virtual
void
printDataToString
(
DtString
& str);
59
60
static
DtSimInterfaceContent
* creator();
61
62
virtual
void
setUUID(
const
DtUUID
&);
63
virtual
const
DtUUID
& uuid()
const
;
64
65
virtual
void
setRequestId(
int
);
66
virtual
int
requestId()
const
;
67
68
virtual
void
addSlotInformation(
int
slot,
const
SlotInformation
&);
69
const
SlotInformationMap
& slotInformationMap()
const
70
{
71
return
mySlotInformationMap;
72
}
73
74
SlotInformationMap
& slotInformationMap()
75
{
76
return
mySlotInformationMap;
77
}
78
79
protected
:
80
DtUUID
myUUID
;
81
int
myRequestId
;
82
SlotInformationMap
mySlotInformationMap
;
83
};
84
85
namespace
DtBufferSerialize
86
{
87
DT_DLL_vrfmsgs
int
getSize
(
const
DtIfEmbarkationSlotInformationResponse::SlotInformation
&);
88
DT_DLL_vrfmsgs
const
char
*
decode
(
DtIfEmbarkationSlotInformationResponse::SlotInformation
&,
const
char
* buffer);
89
DT_DLL_vrfmsgs
char
*
encode
(
const
DtIfEmbarkationSlotInformationResponse::SlotInformation
&,
char
* buffer);
90
91
DT_DLL_vrfmsgs
int
getSize
(
const
DtRangedObjectType
&);
92
DT_DLL_vrfmsgs
const
char
*
decode
(
DtRangedObjectType
&,
const
char
* buffer);
93
DT_DLL_vrfmsgs
char
*
encode
(
const
DtRangedObjectType
&,
char
* buffer);
94
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)