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
vrfExtObjects
weatherObjectRepository.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
12
#include <
vrfExtObjects/controlObjectRepository.h
>
13
15
class
DT_DLL_vrfExtObjects
DtWeatherObjectRepository
:
public
DtControlObjectRepository
16
{
17
public
:
18
DtWeatherObjectRepository
();
19
DtWeatherObjectRepository
(
const
DtWeatherObjectRepository
&);
20
static
DtEnvironmentProcessRepository
*
create
();
21
22
// Utility to compare this repository against a remote estimate
23
// Returns True is an update should be sent; False otherwise
24
virtual
bool
sendNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
25
26
void
setClock(
DtClock
* clock);
27
DtClock
* clock()
const
;
28
29
double
lastUpdateTime()
const
;
30
void
setLastUpdateTime(
DtTime
t);
31
32
protected
:
33
34
virtual
bool
sendRecordsNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
35
virtual
bool
sendWeatherRecNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
36
virtual
bool
sendV3WeatherRecNeeded(
DtTime
dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
37
virtual
bool
sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
38
virtual
DtStateRepository
*
clone
(
bool
copy)
const
;
39
40
protected
:
41
// Helpers for send-side dead reckoning (used to limit #updates sent)
42
DtClock
*
myClock
;
43
DtTime
myLastUpdateTime
;
44
};
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)