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);
78 
79 public:
80 
83 #if DtHLA_1516
84  virtual RTI::ObjectInstanceHandle aggregateObjectId() const;
85 #else
86  virtual RTI::ObjectHandle aggregateObjectId() const;
87 #endif
88 
89 protected:
90 
93 
96 
97 protected:
98 
99  static DtStateRepCreator theStateRepCreator;
100 };
101 
104 {
105  return (DtAggregateStateRepository*) myStateRep;
106 }
107 
110 {
111  return (DtAggregateStateRepository*) myStateRep;
112 }
113 
114 #endif
115 #endif
116 

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)