VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedTimeAndDateHLA.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/reflectedObjectHLA.h>
16 
17 
19 
23 typedef void (*DtTimeAndDateCallbackFunction)(
24  DtReflectedTimeAndDate* obj, void* userData);
25 
31 {
32 public:
35  typedef DtTimeAndDateStateRepository* (*DtStateRepCreator)();
36 
37 public:
39  DtReflectedTimeAndDate(DtHlaObject* obj, DtExerciseConn* exConn);
40 
42  virtual ~DtReflectedTimeAndDate();
43 
45  virtual DtTimeAndDateStateRepository* timeAndDateStateRep() const;
46 
48  virtual DtTimeAndDateStateRepository* tsr() const;
49 
52  virtual DtReflectedTimeAndDate* next() const;
53 
56  virtual DtReflectedTimeAndDate* prev() const;
57 
60  virtual DtReflectedTimeAndDate* wrapNext() const;
61 
64  virtual DtReflectedTimeAndDate* wrapPrev() const;
65 
68  virtual void addPostUpdateCallback(
69  DtTimeAndDateCallbackFunction cb, void* userData);
70 
73  virtual void removePostUpdateCallback(
74  DtTimeAndDateCallbackFunction cb, void* userData);
75 
76 public:
78  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
79 
80 protected:
83 
86 
87 protected:
89  static DtStateRepCreator theStateRepCreator;
90 };
91 
93 {
95 }
96 
98 {
100 }
101 
102 
103 
104 #endif
virtual DtTimeAndDateStateRepository * timeAndDateStateRep() const
Returns a pointer to the StateRepository - through which you can inspect current state information...
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
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
Definition: reflectedTimeAndDateDIS.h:32
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
virtual DtTimeAndDateStateRepository * tsr() const
Synonym for timeAndDateStateRep().
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
Contains the DtTimeAndDateStateRepository class declaration.
void * wrapPrev() const
Definition: vlList.h:288
DtTimeAndDateStateRepository * myStateRep
Definition: reflectedTimeAndDateDIS.h:120
Instances of DtTimeAndDateStateRepository are used to store state data for MAK_TimeAndDate objects...
Definition: timeAndDateStateRepository.h:26

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)