VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globalEnvironmentStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 #include <readerWriter/rwBoolean.h>
17 
19 
23 {
24 private:
27 
30 
33 
34 public:
35 
38  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0);
39 
42 
43  static DtVrfObjectStateRepository* creator(const DtString& name,
44  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
45 
46  virtual DtString type() const override;
47 
50  {
51  return myHasDateTimeSpecified;
52  }
53 
54 protected:
55  virtual void setToLegacyRWData() override;
56  virtual void restoreFromLegacyRWData() override;
57  virtual void createLegacyRWData() override;
58 
59 protected:
62 };
63 
bool myHasDateTimeSpecified
This will be set on scenario load as to whether or not the date/time of day is specified.
Definition: globalEnvironmentStateRepository.h:61
bool dateAndTimeOfDaySpecified() const
Only valid after scenario load.
Definition: globalEnvironmentStateRepository.h:49
This repository holds all information that is common to all the forms of all objects within VR-Forces...
Definition: weatherObjectStateRepository.h:20
Definition: globalEnvironmentParameters.h:16
Definition: readerWriterRegistry.h:39
Description: This repository is an internal repository accessible only by local objects. It holds all information that is common to all the forms of all entity/aggregate/control objects within VR-Forces.
Definition: vrfObjectStateRepository.h:92
virtual void restoreFromLegacyRWData() override
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void setToLegacyRWData() override
This repository holds all information that is common to all the forms of all objects within VR-Forces...
Definition: globalEnvironmentStateRepository.h:22
static DtVrfObjectStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
DtWeatherObjectStateRepository & operator=(const DtWeatherObjectStateRepository &orig)
Assignment Operator.
virtual void createLegacyRWData() override
Creates the legacy data used for any pre/put operation. Override this to create your legacy data atta...
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)