VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedAggregateHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtReflectedAggregate_H_
8 #define DtReflectedAggregate_H_
9 
10 #if DtHLA
11 
13 #include "reflectedObjectHLA.h"
14 
19 
23 typedef void (*DtAggregateCallbackFunction)(
24  DtReflectedAggregate* obj, void* userData);
25 
31 
33 {
34 public:
35 
37  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
38 
39 public:
40 
42  DtReflectedAggregate(DtHlaObject* obj, DtExerciseConn* conn);
43 
46 
48  virtual ~DtReflectedAggregate();
49 
52  virtual DtAggregateStateRepository* aggregateStateRep() const;
53 
55  virtual DtAggregateStateRepository* asr() const;
56 
58  virtual DtReflectedAggregate* next() const;
59 
61  virtual DtReflectedAggregate* prev() const;
62 
65  virtual DtReflectedAggregate* wrapNext() const;
66 
69  virtual DtReflectedAggregate* wrapPrev() const;
70 
72  virtual void addPostUpdateCallback(
73  DtAggregateCallbackFunction cb, void* userData);
74  virtual void removePostUpdateCallback(
75  DtAggregateCallbackFunction cb, void* userData);
76 
77 public:
78 
80  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
82  static DtStateRepCreator stateRepCreator(void);
83 
84 public:
85 
88 #if DtHLA_1516
89  virtual RTI::ObjectInstanceHandle aggregateObjectId() const;
90 #else
91  virtual RTI::ObjectHandle aggregateObjectId() const;
92 #endif
93 
94 protected:
95 
98 
101 
102 protected:
103 
104  static DtStateRepCreator theStateRepCreator;
105 };
106 
109 {
110  return (DtAggregateStateRepository*) myStateRep;
111 }
112 
115 {
116  return (DtAggregateStateRepository*) myStateRep;
117 }
118 
119 #endif
120 #endif
121 
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
virtual DtAggregateStateRepository * asr() const
Synonym for aggregateStateRep().
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
void(* DtAggregateCallbackFunction)(DtReflectedAggregate *obj, void *userData)
Callback function that takes a DtReflectedAggregate and user data.
Definition: reflectedAggregateDIS.h:29
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
virtual DtAggregateStateRepository * aggregateStateRep() const
Returns a pointer to the AggregateStateRepository - through which you can inspect current state infor...
Instances of this class provide a protocol independent interface to a reflected aggregate in a DIS en...
Definition: reflectedAggregateDIS.h:35
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 provides a declaration of the class DtAggregateStateRepository.
A protocol independent representation of an aggregate.
Definition: aggregateStateRepository.h:29

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)