VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 "vrfMetocDefines.h"
16 #include "serviceStateRepository.h"
17 
18 namespace makVrfMetoc {
19 
20 class DtReflectedService;
21 
25 typedef void (*DtServiceCallbackFunction)(
26  DtReflectedService* obj, void* userData);
27 
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:
85 
87  DtReflectedService& operator=(const DtReflectedService& orig);
88 
89 protected:
91  static DtStateRepCreator theStateRepCreator;
92 };
93 
95 {
96  return (DtServiceStateRepository*) myStateRep;
97 }
98 
100 {
101  return (DtServiceStateRepository*) myStateRep;
102 }
103 
104 } //end makVrfMetoc
105 
106 #endif
#define DT_DLL_METOC
This file is used to determine how to build.
Definition: vrfMetocDefines.h:21
void(* DtServiceCallbackFunction)(DtReflectedService *obj, void *userData)
Signature of the callback function that takes a DtReflectedService and user data. ...
Definition: reflectedServiceHLA.h:25
Contains the DtServiceStateRepository class declaration.
static DtStateRepCreator theStateRepCreator
The function called to create state repositories.
Definition: reflectedServiceHLA.h:91
Instances of DtReflectedService are used to represent a simulated HLAobjectRoot.METOC_Root.Service object reflected across a network.
Definition: reflectedServiceHLA.h:32
virtual DtServiceStateRepository * serviceStateRep() const
Returns the Service&#39;s state repository.
Definition: reflectedServiceHLA.h:94
Instances of DtServiceStateRepository are used to store state data for METOC_Root.Service objects.
Definition: serviceStateRepository.h:30
virtual DtServiceStateRepository * ssr() const
Shorter version of lifeformRep.
Definition: reflectedServiceHLA.h:99

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)