VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runwayPublisherDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
15 
16 #include <vl/objectId.h>
17 #include <vlpi/entityIdentifier.h>
18 
19 
20 
22 class DtRunwayEncoder;
23 class DtRunwayDecoder;
24 
28 {
29 public:
31  typedef DtRunwayStateRepository* (*DtStateRepCreator)();
32 
33 public:
36  DtRunwayStateRepository* stateRepToUse,
37  DtExerciseConn* conn,
38  const DtObjectId& id = DtObjectId::nullId());
39 
42  DtExerciseConn* conn,
43  const DtObjectId& id = DtObjectId::nullId());
44 
46  virtual ~DtRunwayPublisher();
47 
48 private:
51 
54  const DtRunwayPublisher& orig);
55 
56 public:
57 
60  virtual DtRunwayStateRepository* runwayStateRep();
61 
63  virtual DtRunwayStateRepository* rsr();
64 
66  virtual bool tick();
67 
69  virtual void forceUpdate();
70 
72  virtual const DtObjectId& id() const;
73 
75  virtual const DtObjectId& localId() const;
76 
78  virtual const DtGlobalObjectDesignator& globalId() const;
79 
80 public:
82  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
83 
84 protected:
86  void sendFinalPdu();
87 
88 protected:
89  static DtStateRepCreator theStateRepCreator;
90  DtObjectId myId;
93 
94 };
95 
97 {
99 }
100 
102 {
104 }
105 
106 
107 
108 #endif
Contains the DtEntityIdentifier class declaration.
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
Instances of DtRunwayEncoder encode data from DtRunwayStateRepository objects to the net structures t...
Definition: runwayEncoderHLA.h:22
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtHlaStateEncoder * myEncoder
Definition: objectPublisherHLA.h:223
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
virtual bool tick()
Tick (update) this object.
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in RTI1.3.3, but the objectId in RTI1...
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
DtHlaStateDecoder * myDecoder
Definition: objectPublisherHLA.h:224
virtual DtRunwayStateRepository * rsr()
Synonym for RunwayStateRep().
Definition: runwayPublisherHLA.h:95
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
Instances of DtRunwayDecoder are used to decode data from the network into DtRunwayStateRepository ob...
Definition: runwayDecoderHLA.h:23
Instances of DtRunwayStateRepository are used to store state data for runway objects.
Definition: runwayStateRepository.h:19
This class declares the DIS version of DtObjectPublisher.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
static const DtObjectId & nullId()
virtual DtRunwayStateRepository * runwayStateRep()
Returns a pointer to the DtRunwayStateRepository - through which you can set or inspect current state...
Definition: runwayPublisherHLA.h:90
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual const DtObjectId & id() const
Get the object&#39;s local identifier.
Instances of DtRunwayPublisher publish Runway objects to the network.
Definition: runwayPublisherHLA.h:23
virtual const DtObjectId & localId() const
Get the object&#39;s local identifier.
Definition: objectPublisherHLA.h:277

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)