VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reserveNameCbList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
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 //#if DtHLA_4 //HLA4
132 //typedef void (*DtReserveMultipleNamesCb)(
133 // const std::set<std::wstring>& nameSet,
134 // void* userData);
135 //
140 //class DT_DLL_VL DtReserveMultipleNamesCbList
141 //{
142 //public:
143 //
144 // //! default constructor
145 // DtReserveMultipleNamesCbList();
146 //
147 // //! destructor
148 // virtual ~DtReserveMultipleNamesCbList();
149 //
150 // //! copy constructor
151 // DtReserveMultipleNamesCbList(const DtReserveMultipleNamesCbList& orig);
152 //
153 // //! assignment operator
154 // DtReserveMultipleNamesCbList& operator=(const DtReserveMultipleNamesCbList& orig);
155 //
156 // //! Add/Remove a start updates callback to/from the list.
157 // //! Returns whether add/remove took place.
158 // virtual int add(DtReserveMultipleNamesCb cb, void* usr);
159 // virtual int remove(DtReserveMultipleNamesCb cb, void* usr);
160 //
161 // //! Remove all callbacks from the list.
162 // virtual void clear();
163 //
164 // //! Callbacks are for a particular inter class handle.
165 // //! Call any callbacks in the list for the inter class handle
166 // //! for the start updates inter.
167 // virtual void apply(const std::set<std::wstring>& nameSet);
168 //
169 //protected:
170 //
171 // //! Remove all callbacks from the list.
172 // //! Non-virtual, since meant to be called from dtor, otherwise
173 // //! should call clear().
174 // void dtorClear();
175 //
176 // //! Copy another callback list into this inter's callback list.
177 // //! Non-virtual since meant to be called from ctor.
178 // void ctorCopyList(const DtReserveMultipleNamesCbList& orig);
179 //
180 //protected:
181 //
182 // DtList myList;
183 //};
184 //#endif // HLA4
185 #endif
186 #endif
187 #endif
188 
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtList and DtListItem.
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)