VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedAggregateListHLA.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 reflectedAggregateListHLA_H_
8 #define reflectedAggregateListHLA_H_
9 
10 #if DtHLA
11 
12 #include "reflectedObjectListHLA.h"
13 #include "reflectedAggregateHLA.h"
14 
19 
24 
26 {
27 public:
28 
32  bool smoothCapable = false, const DtDDMRegionSet* regionSetToUse = 0,
33  const DtString& updateRateTag = DtString(""));
34 
38  const DtList *handleList, bool smoothCapable = false,
39  const DtDDMRegionSet* regionSetToUse = 0,
40  const DtString& updateRateTag = DtString(""));
41 
43  virtual ~DtReflectedAggregateList();
44 
46  virtual DtReflectedAggregate* lookup(
47 #if DtHLA_1516
48  RTI::ObjectInstanceHandle id);
49 #else
50  RTI::ObjectHandle id);
51 #endif
52 
54  virtual DtReflectedAggregate* lookup(
55  const DtGlobalObjectDesignator& objName);
56 
58  virtual DtReflectedAggregate* first() const;
59  virtual DtReflectedAggregate* last() const;
60 
62  virtual void addAggregateAdditionCallback(
63  DtAggregateCallbackFunction cb, void* userData);
64  virtual void removeAggregateAdditionCallback(
65  DtAggregateCallbackFunction cb, void* userData);
66 
68  virtual void addAggregateRemovalCallback(
69  DtAggregateCallbackFunction cb, void* userData);
70  virtual void removeAggregateRemovalCallback(
71  DtAggregateCallbackFunction cb, void* userData);
72 
73 protected:
74 
77 
80 
82  virtual const DtList* dfltHandleList();
83 
85  virtual DtReflectedObject* newReflectedObject(DtHlaObject* obj) const;
86 
89  virtual DtReflectedAggregate* newReflectedAggregate(
90  DtHlaObject* obj) const;
91 
94  virtual void removeAndDelete(DtReflectedObject* object, char* msg);
95 
97  virtual void removeAndDelete(
98  DtReflectedAggregate* aggregate, char* msg = NULL);
99 
102  virtual void objectAdded(DtReflectedObject* obj);
103 
108  virtual void aggregateAdded(DtReflectedAggregate* ent);
109 
110 protected:
111 
112  bool mySmoothCapable;
113 };
114 
115 #endif
116 #endif
117 
Instances of DtReflectedObjectList are lists of instances of classes derived from DtReflectedObject...
Definition: reflectedObjectListDIS.h:38
Contains the HLA DtReflectedObjectList class declaration.
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
Instances of this class provide a protocol independent interface to a list of reflected aggregates in...
Definition: reflectedAggregateListDIS.h:20
void(* DtAggregateCallbackFunction)(DtReflectedAggregate *obj, void *userData)
Callback function that takes a DtReflectedAggregate and user data.
Definition: reflectedAggregateDIS.h:29
Instances of this class provide a protocol independent interface to a reflected aggregate in a DIS en...
Definition: reflectedAggregateDIS.h:35
DtReflectedObjectList & operator=(const DtReflectedObjectList &orig)
assignment operator – not implemented
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
virtual void removeAndDelete(DtReflectedObject *obj, char *msg=NULL)
Remove the remote object from the list if found and delete it.
virtual void objectAdded(DtReflectedObject *object)
Called after a remote object has been added to the list.
Instances of DtString are used to represent strings.
Definition: vlString.h:29

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)