VR-Link API Documentation for DIS
updateControlCbList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
10 
11 #ifndef DtUpdateControlCbList_H_
12 #define DtUpdateControlCbList_H_
13 
14 #if DtHLA
15 
16 #include <vlutil/vlList.h>
17 
18 
19 #include "rtiNamespace.h"
20 
21 
22 #if DtHLA_1516
23 typedef void (*DtUpdateControlCb)( RTI::ObjectInstanceHandle instanceHandle,
24  const RTI::AttributeHandleSet& attributeSet,
25  void* usr);
26 #else
27 typedef void (*DtUpdateControlCb)( RTI::ObjectHandle instanceHandle,
28  const RTI::AttributeHandleSet& attributeSet,
29  void* usr);
30 #endif
31 
32 typedef DtUpdateControlCb DtUpdatesOnCb;
33 typedef DtUpdateControlCb DtUpdatesOffCb;
34 
35 
40 class DT_DLL_VL DtUpdateControlCbList
41 {
42 public:
43 
45  DtUpdateControlCbList();
46 
48  virtual ~DtUpdateControlCbList();
49 
51  DtUpdateControlCbList( const DtUpdateControlCbList& orig);
52 
54  DtUpdateControlCbList& operator=( const DtUpdateControlCbList& orig);
55 
58  virtual int add(
59 #if DtHLA_1516
60  RTI::ObjectInstanceHandle hand,
61 #else
62  RTI::ObjectHandle hand,
63 #endif
64  DtUpdateControlCb cb,
65  void* usr);
66 
67  virtual int remove(
68 #if DtHLA_1516
69  RTI::ObjectInstanceHandle hand,
70 #else
71  RTI::ObjectHandle hand,
72 #endif
73  DtUpdateControlCb cb,
74  void* usr);
75 
77  virtual void clear();
78 
81  virtual void apply(
82 #if DtHLA_1516
83  RTI::ObjectInstanceHandle instanceHandle,
84 #else
85  RTI::ObjectHandle instanceHandle,
86 #endif
87  const RTI::AttributeHandleSet& hSet);
88 
89 protected:
90 
94  void dtorClear();
95 
98  void ctorCopyList(const DtUpdateControlCbList& orig);
99 
100 protected:
101 
102  DtList myList;
103 };
104 
105 typedef DtUpdateControlCbList DtUpdatesOnCbList;
106 typedef DtUpdateControlCbList DtUpdatesOffCbList;
107 
108 #endif
109 #endif
110 

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)