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 VT MAK
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 
45  virtual ~DtReflectedAggregate();
46 
49  virtual DtAggregateStateRepository* aggregateStateRep() const;
50 
52  virtual DtAggregateStateRepository* asr() const;
53 
55  virtual DtReflectedAggregate* next() const;
56 
58  virtual DtReflectedAggregate* prev() const;
59 
62  virtual DtReflectedAggregate* wrapNext() const;
63 
66  virtual DtReflectedAggregate* wrapPrev() const;
67 
69  virtual void addPostUpdateCallback(
70  DtAggregateCallbackFunction cb, void* userData);
71  virtual void removePostUpdateCallback(
72  DtAggregateCallbackFunction cb, void* userData);
73 
74 public:
75 
77  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
79  static DtStateRepCreator stateRepCreator(void);
80 
81 public:
82 
85 #if DtHLA_1516
86  virtual RTI::ObjectInstanceHandle aggregateObjectId() const;
87 #else
88  virtual RTI::ObjectHandle aggregateObjectId() const;
89 #endif
90 
91 protected:
92 
95 
98 
99 protected:
100 
101  static DtStateRepCreator theStateRepCreator;
102 };
103 
106 {
107  return (DtAggregateStateRepository*) myStateRep;
108 }
109 
112 {
113  return (DtAggregateStateRepository*) myStateRep;
114 }
115 
116 #endif
117 #endif
118 
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:61
#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 Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)