VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedVRLinkStateHLA.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2022 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include "reflectedObjectHLA.h"
15 
16 class DtReflectedVRLinkState;
17 class DtVRLinkStateStateRepository;
18 
21 typedef void (*DtVRLinkStateCallbackFunction)(DtReflectedVRLinkState* obj, void* userData);
22 
25 class DT_DLL_VL DtReflectedVRLinkState : public DtReflectedObject
26 {
27 public:
29  typedef DtVRLinkStateStateRepository* (*DtStateRepCreator)();
30 
31 public:
33  DtReflectedVRLinkState(DtHlaObject* obj, DtExerciseConn* exConn);
34 
36  virtual ~DtReflectedVRLinkState();
37 
39  virtual DtVRLinkStateStateRepository* vrlinkStateStateRep() const;
40 
42  virtual DtVRLinkStateStateRepository* vsr() const;
43 
45  virtual DtReflectedVRLinkState* next() const;
46 
48  virtual DtReflectedVRLinkState* prev() const;
49 
52  virtual DtReflectedVRLinkState* wrapNext() const;
53 
56  virtual DtReflectedVRLinkState* wrapPrev() const;
57 
59  virtual void addPostUpdateCallback(DtVRLinkStateCallbackFunction cb, void* userData);
60 
62  virtual void removePostUpdateCallback(DtVRLinkStateCallbackFunction cb, void* userData);
63 
64 public:
66  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
67 
68 protected:
70  DtReflectedVRLinkState(const DtReflectedVRLinkState& orig);
71 
73  DtReflectedVRLinkState& operator=(const DtReflectedVRLinkState& orig);
74 
75 protected:
77  static DtStateRepCreator theStateRepCreator;
78 };
79 
80 inline DtVRLinkStateStateRepository* DtReflectedVRLinkState::vrlinkStateStateRep() const
81 {
82  return (DtVRLinkStateStateRepository*) myStateRep;
83 }
84 
85 inline DtVRLinkStateStateRepository* DtReflectedVRLinkState::vsr() const
86 {
87  return (DtVRLinkStateStateRepository*) myStateRep;
88 }
89 
90 #endif
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's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
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
void * wrapPrev() const
Definition: vlList.h:288

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)