VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
landSurfacePublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
10 
11 #pragma once
12 
13 #if DtDIS
14 
15 #include <vl/objectId.h>
16 #include <vl/objectPublisherDIS.h>
17 #include <vlpi/entityIdentifier.h>
18 
19 
23 
24 
32 {
33 public:
35  typedef DtLandSurfaceStateRepository* (*DtStateRepCreator)();
36 
37 public:
40  DtLandSurfaceStateRepository* stateRepToUse,
41  DtExerciseConn* conn,
42  const DtObjectId& id = DtObjectId::nullId());
43 
46  DtExerciseConn* conn,
47  const DtObjectId& id = DtObjectId::nullId());
48 
50  virtual ~DtLandSurfacePublisher();
51 
52 private:
55 
58  const DtLandSurfacePublisher& orig);
59 
60 public:
63  virtual DtLandSurfaceStateRepository* landSurfaceLayerStateRep();
64 
66  virtual DtLandSurfaceStateRepository* lsr();
67 
69  virtual bool tick();
70 
72  virtual void forceUpdate();
73 
75  virtual const DtObjectId& id() const;
76 
78  virtual const DtObjectId& localId() const;
79 
81  virtual const DtGlobalObjectDesignator& globalId() const;
82 
83 public:
85  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
86 
87 protected:
89  void sendFinalPdu();
90 
91 protected:
92  static DtStateRepCreator theStateRepCreator;
96 
97 };
98 
100 {
102 }
103 
105 {
107 }
108 
109 #endif
Contains the DtEntityIdentifier class declaration.
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
static const DtEntityIdentifier & nullId()
Returns a reference to an instance of 0:0:0.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
Instances of DtLandSurfacePublisher publish METOC_Root.EnvironmentCondition.Weather.LandSurface.LandSurface objects to the network.
Definition: landSurfacePublisherDIS.h:31
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
virtual DtLandSurfaceStateRepository * lsr()
Synonym for landSurfaceLayerStateRep().
Definition: landSurfacePublisherDIS.h:104
Instances of DtLandSurfaceEncoder encode data from DtLandSurfaceStateRepository objects to the net st...
Definition: landSurfaceEncoderDIS.h:26
virtual DtLandSurfaceStateRepository * landSurfaceLayerStateRep()
Returns a pointer to the DtLandSurfaceStateRepository - through which you can set or inspect current ...
Definition: landSurfacePublisherDIS.h:99
static DtStateRepCreator theStateRepCreator
Definition: landSurfacePublisherDIS.h:92
virtual const DtGlobalObjectDesignator & globalId() const =0
The entityIdentifier unique to this object.
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
DtLandSurfaceEncoder * myEncoder
Definition: landSurfacePublisherDIS.h:95
Instances of DtMetocEncoder encode data from DtMETOC_RootStateRepository objects to the net structure...
Definition: landSurfaceDecoderDIS.h:26
This class declares the DIS version of DtObjectPublisher.
DtObjectId myId
Definition: landSurfacePublisherDIS.h:93
virtual bool tick()=0
Tick (update) this object.
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.
Instances of DtLandSurfaceStateRepository are used to store state data for METOC_Root.EnvironmentCondition.Weather.LandSurface objects.
Definition: landSurfaceStateRepository.h:31
DtLandSurfaceDecoder * myDecoder
Definition: landSurfacePublisherDIS.h:94

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)