VR-Forces 4.6 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
ifSpawnList.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <
vrfExtProtocol/simInterfaceContent.h
>
9
#include "
vrfmsgs/vrfmsgsDefines.h
"
10
#include <vector>
11
#include <
vrfmsgs/rwSpawnDataList.h
>
12
13
struct
SpawnTemplateListEntry
14
{
15
SpawnTemplateListEntry
() :
myUUID
(
DtUUID
::nullUUID()) {};
16
17
DtUUID
myUUID
;
18
DtString
myTemplateName
;
19
DtString
myDescription
;
20
std::set<DtUUID>
mySpawnPoints
;
21
std::set<DtUUID>
mySinkPoints
;
22
23
bool
operator==
(
const
SpawnTemplateListEntry
& rhs)
const
24
{
25
return
((
myUUID
== rhs.
myUUID
) && (
myTemplateName
== rhs.
myTemplateName
) && (
myDescription
== rhs.
myDescription
) &&
26
(
mySpawnPoints
== rhs.
mySpawnPoints
) && (
mySinkPoints
== rhs.
mySinkPoints
));
27
}
28
29
bool
operator!=
(
const
SpawnTemplateListEntry
& rhs)
const
30
{
31
return
!(*
this
== rhs);
32
}
33
};
34
36
typedef
std::vector<SpawnTemplateListEntry>
SpawnTemplateDescriptionList
;
37
41
class
DT_DLL_vrfmsgs
DtIfSpawnList
:
public
DtSimInterfaceContent
42
{
43
44
public
:
45
47
DtIfSpawnList
();
48
50
DtIfSpawnList
(
const
DtIfSpawnList
& orig);
51
53
const
DtIfSpawnList
&
operator=
(
const
DtIfSpawnList
& orig);
54
56
virtual
~
DtIfSpawnList
();
57
59
virtual
int
type
()
const
;
60
62
virtual
DtSimInterfaceContent
*
clone
()
const
;
63
66
const
SpawnTemplateDescriptionList
& spawnTemplateAndDescriptionList()
67
const
;
69
71
virtual
void
setInitialSend(
bool
);
72
bool
initialSend()
const
;
73
76
virtual
void
addTemplateEntry(
DtRwSpawnData
* spawnTemplate);
77
78
virtual
int
netRepSize
()
const
;
79
80
virtual
bool
setFromNet
(
const
char
* contentBuffer,
unsigned
contentSize);
81
82
virtual
bool
setToNet
();
83
84
virtual
void
printDataToString
(
DtString
& str);
85
86
static
DtSimInterfaceContent
* creator();
87
88
protected
:
89
90
SpawnTemplateDescriptionList
mySpawnTemplateList
;
91
bool
myInitialSend
;
92
};
93
94
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)