VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedExampleEmbeddedSystem.h
Go to the documentation of this file.
1 //********************************************************************
2 // Copyright (c) 2025 MAK Technologies, Inc
3 // All rights reserved.
4 //********************************************************************
5 
6 #pragma once
7 
10 #include <vl/reflectedObjectHLA.h>
11 
14 
19  DtReflectedExampleEmbeddedSystem* obj, void* userData);
20 
24 {
25 public:
27  typedef DtExampleEmbeddedSystemRepository* (*DtStateRepCreator)();
28 
30  typedef DtExampleEmbeddedSystemDecoder* (*DtDecoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
31 
32 public:
33 
37  DtReflectedExampleEmbeddedSystem(DtHlaObject* obj, DtExerciseConn* conn);
38 
41 
44 
48 
51  virtual DtExampleEmbeddedSystemRepository* eesr() const;
52 
54 
57 
60  virtual DtReflectedExampleEmbeddedSystem* next() const;
61 
64  virtual DtReflectedExampleEmbeddedSystem* prev() const;
65 
69 
73 
75 
78 
82  virtual void addPostUpdateCallback(
83  DtExampleEmbeddedSystemCallbackFunction cb, void* userData);
84 
88  virtual void removePostUpdateCallback(
89  DtExampleEmbeddedSystemCallbackFunction cb, void* userData);
90 
92 
93 public:
96 
101 
106 
108 
109 protected:
112 
116 
117 protected:
120 
123 };
124 
129 {
130  return (DtExampleEmbeddedSystemRepository*) myStateRep;
131 }
132 
136 {
137  return (DtExampleEmbeddedSystemRepository*) myStateRep;
138 }
139 
140 
virtual ~DtReflectedExampleEmbeddedSystem()
Virtual destructor for proper cleanup.
virtual DtReflectedExampleEmbeddedSystem * next() const
Gets the next embedded system in the list.
virtual DtReflectedExampleEmbeddedSystem * wrapNext() const
Gets the next embedded system with wraparound.
virtual void addPostUpdateCallback(DtExampleEmbeddedSystemCallbackFunction cb, void *userData)
Registers a callback for post-update events.
DtReflectedExampleEmbeddedSystem & operator=(const DtReflectedExampleEmbeddedSystem &orig)
Assignment operator - not implemented.
DtExampleEmbeddedSystemDecoder *(* DtDecoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Function prototype for factory methods that create network decoders.
Definition: reflectedExampleEmbeddedSystem.h:30
Definition: exampleEmbeddedSystemRepository.h:25
virtual DtReflectedExampleEmbeddedSystem * prev() const
Gets the previous embedded system in the list.
Reflected object representing a remote embedded system received over HLA/DIS. Manages state repositor...
Definition: reflectedExampleEmbeddedSystem.h:23
static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator)
Sets the factory function for creating state repositories.
static DtDecoderCreator theDecoderCreator
Static factory function for creating network decoders.
Definition: reflectedExampleEmbeddedSystem.h:122
virtual DtReflectedExampleEmbeddedSystem * wrapPrev() const
Gets the previous embedded system with wraparound.
virtual DtExampleEmbeddedSystemRepository * exampleEmbeddedSystemRepository() const
Gets the embedded system&#39;s state repository.
Definition: reflectedExampleEmbeddedSystem.h:128
DtExampleEmbeddedSystemRepository *(* DtStateRepCreator)()
Function prototype for factory methods that create state repositories.
Definition: reflectedExampleEmbeddedSystem.h:27
static DtDecoderCreator setDecoderCreator(DtDecoderCreator creator)
Sets the factory function for creating network decoders.
void(* DtExampleEmbeddedSystemCallbackFunction)(DtReflectedExampleEmbeddedSystem *obj, void *userData)
Callback function type for embedded system object events.
Definition: reflectedExampleEmbeddedSystem.h:18
virtual void removePostUpdateCallback(DtExampleEmbeddedSystemCallbackFunction cb, void *userData)
Unregisters a previously registered callback.
DtReflectedExampleEmbeddedSystem(DtHlaObject *obj, DtExerciseConn *conn)
Constructor for reflected embedded system object.
Decoder class for example embedded system network communication. Handles conversion of network attrib...
Definition: exampleEmbeddedSystemDecoder.h:16
virtual DtExampleEmbeddedSystemRepository * eesr() const
Synonym for exampleEmbeddedSystemRepository() - shorter name for convenience.
Definition: reflectedExampleEmbeddedSystem.h:135
static DtStateRepCreator theStateRepCreator
Static factory function for creating state repositories.
Definition: reflectedExampleEmbeddedSystem.h:119

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)