VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherLocalNetInterface.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 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlList.h>
17 #include <vl/globalObjectDesignator.h>
19 
20 class DtVrfObject;
22 class DtSimManager;
25 
30 {
31 protected:
34 
35 public:
36 
39  DtVrfObject* vrfObject,
40  DtReaderWriterRegistry* parentRegistry = 0,
41  bool publishObject = true);
42 
48  const DtWeatherLocalNetInterface & orig,
49  DtReaderWriterRegistry * parentRegistry = 0);
50 
54 
56  virtual ~DtWeatherLocalNetInterface();
57 
58  virtual bool init(const DtEntityIdentifier& id = DtEntityIdentifier::nullId());
59 
61  virtual void updatePublisher();
62 
64  virtual DtString type() const;
65 
66  static DtSimObjectNetInterface* creator(const DtString& name,
67  DtVrfObject* vrfObject,
68  DtReaderWriterRegistry* parentRegistry,
69  bool publishObject);
70 
71  virtual int weatherRecordIndex() const;
72  virtual void destroyPublisher();
73 
74 protected:
76  virtual DtEnvironmentProcessRepository* epsr() const;
77 
79  virtual void setupRecords();
80 
81  virtual void updateGeometryRecord(DtWeatherStateRepository* localState);
82 
83  virtual void updateStateRecord(DtWeatherStateRepository* localState);
84 
85  virtual DtEnvironmentProcessPublisher* _createPublisher(const DtEntityIdentifier& id = DtEntityIdentifier::nullId()) const;
86  virtual bool createPublisher(const DtEntityIdentifier& entityId);
87 
88 protected:
90 };
Contains the DtSimEnvironmentalModelType class declaration.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void updatePublisher()
Update this publisher&#39;s contents.
virtual void destroyPublisher()
Called by the destructor (and also by setPublisher() in some cases).
Definition: readerWriterRegistry.h:39
This repository holds all information that is common to all the forms of all objects within VR-Forces...
Definition: weatherStateRepository.h:19
static DtSimObjectNetInterface * creator(const DtString &name, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry, bool publishObject)
Class Description: DtSimLocalControlObjectNetInterface.
Definition: simLocalControlObjectNetInterface.h:38
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Definition: vrfEnvironmentalWeatherStateRecord.h:158
const DtSimLocalControlObjectNetInterface & operator=(const DtSimLocalControlObjectNetInterface &orig)
assignment operator; see note on copy constructor above.
virtual bool init()
override of base class init(), calls create&lt;...&gt;Record() functions
DtVrfEnvironmentalWeatherStateRecord * myEnvironmentalStateRecord
Definition: weatherLocalNetInterface.h:89
virtual bool createPublisher(const DtEntityIdentifier &id=DtEntityIdentifier::nullId())
Called by init() to create a VR-Link publisher, deriving classes create the type of publisher needed ...
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
Local network interface for weather state objects.
Definition: weatherLocalNetInterface.h:29
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual DtString type() const
Return type string for publisher that can be referred to in ope files (see &quot;vrfNetIfTypes.h&quot;)
virtual DtEnvironmentProcessPublisher * _createPublisher(const DtEntityIdentifier &id=DtEntityIdentifier::nullId()) const
Override this functions to use a subclass of DtEnvironmentProcessPublisher.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)