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
vrfExtObjects
weatherObjectRepository.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrfExtObjects/dllExport.h
>
13
#include <
vrfExtObjects/controlObjectRepository.h
>
14
16
class
DT_DLL_vrfExtObjects
DtWeatherObjectRepository
17
:
public
DtControlObjectRepository
18
{
19
public
:
20
21
static
DtEnvironmentProcessRepository
*
create
();
22
23
DtWeatherObjectRepository
();
24
DtWeatherObjectRepository
(
const
DtWeatherObjectRepository
&);
25
26
// Utility to compare this repository against a remote estimate
27
// Returns True is an update should be sent; False otherwise
28
virtual
bool
sendNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
29
30
void
setClock(
DtClock
* clock);
31
DtClock
* clock()
const
;
32
33
double
lastUpdateTime()
const
;
34
void
setLastUpdateTime(
DtTime
t);
35
36
protected
:
37
38
virtual
bool
sendRecordsNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
39
virtual
bool
sendWeatherRecNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
40
virtual
bool
sendV3WeatherRecNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
41
virtual
bool
sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
42
virtual
DtStateRepository
*
clone
(
bool
copy)
const
;
43
44
protected
:
45
46
// Helpers for send-side dead reckoning (used to limit #updates sent)
47
DtClock
*
myClock
;
48
DtTime
myLastUpdateTime
;
49
50
};
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
)