VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
DtUUID
myUUID
;
16
DtString
myTemplateName
;
17
DtString
myDescription
;
18
std::set<DtUUID>
mySpawnPoints
;
19
std::set<DtUUID>
mySinkPoints
;
20
21
bool
operator==
(
const
SpawnTemplateListEntry
& rhs)
const
22
{
23
return
((
myUUID
== rhs.
myUUID
) && (
myTemplateName
== rhs.
myTemplateName
) && (
myDescription
== rhs.
myDescription
) &&
24
(
mySpawnPoints
== rhs.
mySpawnPoints
) && (
mySinkPoints
== rhs.
mySinkPoints
));
25
}
26
27
bool
operator!=
(
const
SpawnTemplateListEntry
& rhs)
const
28
{
29
return
!(*
this
== rhs);
30
}
31
};
32
34
typedef
std::vector<SpawnTemplateListEntry>
SpawnTemplateDescriptionList
;
35
39
class
DT_DLL_vrfmsgs
DtIfSpawnList
:
public
DtSimInterfaceContent
40
{
41
42
public
:
43
45
DtIfSpawnList
();
46
48
DtIfSpawnList
(
const
DtIfSpawnList
& orig);
49
51
const
DtIfSpawnList
&
operator=
(
const
DtIfSpawnList
& orig);
52
54
virtual
~
DtIfSpawnList
();
55
57
virtual
int
type
()
const
;
58
60
virtual
DtSimInterfaceContent
*
clone
()
const
;
61
64
const
SpawnTemplateDescriptionList
& spawnTemplateAndDescriptionList()
65
const
;
67
69
virtual
void
setInitialSend(
bool
);
70
bool
initialSend()
const
;
71
74
virtual
void
addTemplateEntry(
DtRwSpawnData
* spawnTemplate);
75
76
virtual
int
netRepSize
()
const
;
77
78
virtual
bool
setFromNet
(
const
char
* contentBuffer,
unsigned
contentSize);
79
80
virtual
bool
setToNet
();
81
82
virtual
void
printDataToString
(
DtString
& str);
83
84
static
DtSimInterfaceContent
* creator();
85
86
protected
:
87
88
SpawnTemplateDescriptionList
mySpawnTemplateList
;
89
bool
myInitialSend
;
90
};
91
92
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)