VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedTimeAndDateDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
11 
12 #if DtDIS
13 
14 #include <vlutil/vlMachineTypes.h>
15 #include <vlutil/vlHashKeys.h>
16 #include <vl/reflectedObjectDIS.h>
18 #include <vl/timeAndDatePdu.h>
20 
21 class DtExerciseConn;
22 
26 
27 
28 typedef void (*DtTimeAndDateStateCallbackFunction)(
29  DtReflectedTimeAndDate* obj, void* userData);
30 
31 
33 {
34 public:
35 
37  typedef DtTimeAndDateStateRepository* (*DtStateRepCreator)();
38 
39 public:
40 
43 
45  virtual ~DtReflectedTimeAndDate();
46 
47 private:
50 
53 public:
54 
57  virtual DtTimeAndDateStateRepository* timeAndDateStateRep() const;
58 
60  virtual DtTimeAndDateStateRepository* tsr() const;
61 
65  virtual DtStateRepository* stateRep() const;
66 
69  virtual DtTimeAndDateDecoder* decoder();
70 
73  virtual const DtGlobalObjectDesignator& globalId() const;
74 
76  virtual DtReflectedTimeAndDate* next() const;
77  virtual DtReflectedTimeAndDate* prev() const;
78 
80  virtual DtReflectedTimeAndDate* wrapNext() const;
81  virtual DtReflectedTimeAndDate* wrapPrev() const;
82 
84  virtual void addPostUpdateCallback(
85  DtTimeAndDateStateCallbackFunction cb, void* userData);
86  virtual void removePostUpdateCallback(
87  DtTimeAndDateStateCallbackFunction cb, void* userData);
88 
90  virtual void setHashKey(const DtEntityIdentifier& uniqueVal);
91 
94  virtual const DtBaseHashKey& hashKey() const;
95 
97  virtual DtString idString() const;
98 
99 
101  virtual void processStateMessage(const DtStateMsg& msg);
102 
105  virtual void processTimeAndDateState(const DtTimeAndDatePdu& pdu);
106 
108  virtual void runwayUpdated();
109 
110 public:
111 
113  static void setStateRepCreator(DtStateRepCreator creator);
114  static DtStateRepCreator stateRepCreator(void);
115 
116 protected:
117 
118  static DtStateRepCreator theStateRepCreator;
119  DtEntityIdentifierHashKey myHashKey;
122 };
123 
124 
125 
126 #endif
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:181
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtReflectedTimeAndDate are used to represent a simulated HLAobjectRoot.MAK_TimeAndDate object reflected across a network.
Definition: reflectedTimeAndDateHLA.h:30
This file contains typedefs used to represent objects in a protocol neutral way.
virtual DtHlaStateDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages into our SR. ...
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – Not Implemented
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository - through which you can inspect current state information...
Definition: reflectedObjectHLA.h:198
This file declares DtEntityIdentifierHashKey.
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in HLA.
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtTimeAndDateDecoder are used to decode data from the network into DtTimeAndDateStateRep...
Definition: timeAndDateDecoderHLA.h:21
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file declares DtBaseHashKey.
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Contains the DtTimeAndDatePdu class declaration.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
class DtStateMsg:
Definition: stateMsgHLA.h:32
Instances of DtTimeAndDateStateRepository are used to store state data for MAK_TimeAndDate objects...
Definition: timeAndDateStateRepository.h:26
This file contains typedefs for machine dependant types.

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)