VR-Link API Documentation for DIS
resNameCbList.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 DtReserveNameCbList_h_
11 #define DtReserveNameCbList_h_
12 
13 #if DtHLA
14 #if DtHLA_1516
15 
16 
17 #include "rtiNamespace.h"
18 #include <vlutil/vlList.h>
19 #include <string>
20 
21 
22 typedef void (*DtReserveNameCb)(
23  const std::wstring &theName,
24  void *theUserData);
25 
30 class DT_DLL_VL DtReserveNameCbList
31 {
32 public:
33 
35  DtReserveNameCbList();
36 
38  virtual ~DtReserveNameCbList();
39 
41  DtReserveNameCbList( const DtReserveNameCbList& orig);
42 
44  DtReserveNameCbList& operator=( const DtReserveNameCbList& orig);
45 
48  virtual int add( DtReserveNameCb cb, void* usr);
49  virtual int remove( DtReserveNameCb cb, void* usr);
50 
52  virtual void clear();
53 
57  virtual void apply(const std::wstring &theName);
58 
59 protected:
60 
64  void dtorClear();
65 
68  void ctorCopyList(const DtReserveNameCbList& orig);
69 
70 protected:
71 
72  DtList myList;
73 };
74 
75 
76 #if DtHLA_1516_EVOLVED
77 typedef void (*DtReserveMultipleNamesCb)(
78  const std::set<std::wstring>& nameSet,
79  void* userData );
80 
85 class DT_DLL_VL DtReserveMultipleNamesCbList
86 {
87 public:
88 
90  DtReserveMultipleNamesCbList();
91 
93  virtual ~DtReserveMultipleNamesCbList();
94 
96  DtReserveMultipleNamesCbList( const DtReserveMultipleNamesCbList& orig);
97 
99  DtReserveMultipleNamesCbList& operator=( const DtReserveMultipleNamesCbList& orig);
100 
103  virtual int add( DtReserveMultipleNamesCb cb, void* usr);
104  virtual int remove( DtReserveMultipleNamesCb cb, void* usr);
105 
107  virtual void clear();
108 
112  virtual void apply(const std::set<std::wstring>& nameSet);
113 
114 protected:
115 
119  void dtorClear();
120 
123  void ctorCopyList(const DtReserveMultipleNamesCbList& orig);
124 
125 protected:
126 
127  DtList myList;
128 };
129 #endif // evolved
130 
131 #endif
132 #endif
133 #endif
134 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)