VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedServiceHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 **This file was generated by MAK Technologies' VR-Link Code Generator.
3 **hrefObjHeader.tlt
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/reflectedObjectHLA.h>
15 #include <vlutil/vlMachineTypes.h>
16 #include "serviceStateRepository.h"
17 
18 
19 
20 class DtReflectedService;
21 
25 typedef void (*DtServiceCallbackFunction)(
26  DtReflectedService* obj, void* userData);
27 
32 class DT_DLL_VL DtReflectedService : public DtReflectedObject
33 {
34 public:
37  typedef DtServiceStateRepository* (*DtStateRepCreator)();
38 
39 public:
41  DtReflectedService(DtHlaObject* obj, DtExerciseConn* exConn);
42 
44  virtual ~DtReflectedService();
45 
47  virtual DtServiceStateRepository* serviceStateRep() const;
48 
50  virtual DtServiceStateRepository* ssr() const;
51 
54  virtual DtReflectedService* next() const;
55 
58  virtual DtReflectedService* prev() const;
59 
62  virtual DtReflectedService* wrapNext() const;
63 
66  virtual DtReflectedService* wrapPrev() const;
67 
70  virtual void addPostUpdateCallback(
71  DtServiceCallbackFunction cb, void* userData);
72 
75  virtual void removePostUpdateCallback(
76  DtServiceCallbackFunction cb, void* userData);
77 
78 public:
80  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
81 
82 protected:
84  DtReflectedService(const DtReflectedService& orig);
85 
87  DtReflectedService& operator=(const DtReflectedService& orig);
88 
89 protected:
91  static DtStateRepCreator theStateRepCreator;
92 };
93 
94 inline DtServiceStateRepository* DtReflectedService::serviceStateRep() const
95 {
96  return (DtServiceStateRepository*) myStateRep;
97 }
98 
99 inline DtServiceStateRepository* DtReflectedService::ssr() const
100 {
101  return (DtServiceStateRepository*) myStateRep;
102 }
103 
104 
105 
106 #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&#39;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
Contains the DtServiceStateRepository class declaration.
Instances of DtServiceStateRepository are used to store state data for METOC_Root.Service objects.
Definition: serviceStateRepository.h:30
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
This file contains typedefs for machine dependant types.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)