VR-Forces Development_Version 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
vrfobjcore
simRemoteEntityNetInterface.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
11
13
14
#include "
vrfobjcore/simEntityNetInterface.h
"
15
#include <vl/globalObjectDesignator.h>
16
#include "
vrfutil/rwString.h
"
17
18
19
class
DtReflectedObject
;
20
29
#include "
vrfobjcore/vrfobjcoreDefines.h
"
30
class
DT_DLL_vrfobjcore
DtSimRemoteEntityNetInterface
:
public
DtSimEntityNetInterface
31
{
32
protected
:
34
DtSimRemoteEntityNetInterface
();
35
36
public
:
37
39
DtSimRemoteEntityNetInterface
(
const
DtString
& name,
DtVrfObject
* simObject,
40
DtReaderWriterRegistry
* parentRegistry = 0,
bool
publishObject =
true
);
41
46
DtSimRemoteEntityNetInterface
(
const
DtSimRemoteEntityNetInterface
& orig,
47
DtReaderWriterRegistry
* parentRegistry = 0);
48
50
const
DtSimRemoteEntityNetInterface
&
operator=
(
const
51
DtSimRemoteEntityNetInterface
& orig);
52
54
virtual
~
DtSimRemoteEntityNetInterface
();
55
58
virtual
bool
init
();
59
61
virtual
void
onTick
();
62
66
virtual
void
updateFromReflectedObject() = 0;
67
70
virtual
void
setupFromNetworkRepository();
71
78
virtual
void
setReflectedObject(
DtReflectedObject
* reflectedObject);
79
82
virtual
const
DtReflectedObject
* reflectedObject()
const
;
83
virtual
DtReflectedObject
* reflectedObject();
84
86
virtual
bool
isLocal
()
const
{
return
false
; }
87
88
virtual
bool
isAggregate()
const
= 0;
89
92
virtual
void
setUpdateReceived(
bool
updateReceived);
93
95
virtual
bool
updateReceived()
const
;
96
100
static
const
DtSimRemoteEntityNetInterface
* isRemoteEntityNetInterface(
const
101
DtSimObjectNetInterface
* objNetInterface);
102
103
static
DtSimRemoteEntityNetInterface
* isRemoteEntityNetInterface(
104
DtSimObjectNetInterface
* objNetInterface);
105
106
static
void
reflectedObjectUpdateCallbackFunction(
DtReflectedObject
* obj,
107
void
* userData);
108
110
virtual
void
updateUUIDIfNeeded();
111
112
protected
:
113
116
DtReflectedObject
*
myReflectedObject
;
117
120
bool
myUpdateReceived
;
121
122
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)