VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
13 
16 {
17 public:
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)
44 };

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)