VR-Link API Documentation for DIS
reflectAttributeValuesCbList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtReflectAttributeValuesCbList_H_
11 #define DtReflectAttributeValuesCbList_H_
12 
13 #if DtHLA
14 
15 #include <vlutil/vlList.h>
16 
17 
18 #include "rtiNamespace.h"
19 
20 
21 
22 class DT_DLL_VL DtStateMsg;
23 
24 typedef void (*DtReflectAttributeValuesCb)(const DtStateMsg& stateMsg,
25  void* usr);
26 
31 class DT_DLL_VL DtReflectAttributeValuesCbList
32 {
33 
34 public:
35 
37  DtReflectAttributeValuesCbList();
38 
40  virtual ~DtReflectAttributeValuesCbList();
41 
43  DtReflectAttributeValuesCbList(
44  const DtReflectAttributeValuesCbList& orig);
45 
47  DtReflectAttributeValuesCbList& operator=(
48  const DtReflectAttributeValuesCbList& orig);
49 
52  virtual int add(
53 #if DtHLA_1516
54  RTI::ObjectInstanceHandle id,
55 #else
56  RTI::ObjectHandle id,
57 #endif
58  DtReflectAttributeValuesCb cb,
59  void* usr);
60 
61  virtual int remove(
62 #if DtHLA_1516
63  RTI::ObjectInstanceHandle id,
64 #else
65  RTI::ObjectHandle id,
66 #endif
67  DtReflectAttributeValuesCb cb,
68  void* usr);
69 
71  virtual void clear();
72 
77  virtual void apply(const DtStateMsg &msg);
78 
79 protected:
80 
84  void dtorClear();
85 
88  void ctorCopyList(const DtReflectAttributeValuesCbList& orig);
89 
90 protected:
91 
92  DtList myList;
93 };
94 
95 #endif
96 #endif
97 

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)