![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00009 00010 #ifndef DtReserveNameCbList_h_ 00011 #define DtReserveNameCbList_h_ 00012 00013 #if DtHLA 00014 #if DtHLA_1516 00015 00016 00017 #include "rtiNamespace.h" 00018 #include <vlutil/vlList.h> 00019 #include <string> 00020 00021 00022 typedef void (*DtReserveNameCb)( 00023 const std::wstring &theName, 00024 void *theUserData); 00025 00030 class DT_DLL_VL DtReserveNameCbList 00031 { 00032 public: 00033 00035 DtReserveNameCbList(); 00036 00038 virtual ~DtReserveNameCbList(); 00039 00041 DtReserveNameCbList( const DtReserveNameCbList& orig); 00042 00044 DtReserveNameCbList& operator=( const DtReserveNameCbList& orig); 00045 00048 virtual int add( DtReserveNameCb cb, void* usr); 00049 virtual int remove( DtReserveNameCb cb, void* usr); 00050 00052 virtual void clear(); 00053 00057 virtual void apply(const std::wstring &theName); 00058 00059 protected: 00060 00064 void dtorClear(); 00065 00068 void ctorCopyList(const DtReserveNameCbList& orig); 00069 00070 protected: 00071 00072 DtList myList; 00073 }; 00074 00075 00076 #if DtHLA_1516_EVOLVED 00077 typedef void (*DtReserveMultipleNamesCb)( 00078 const std::set<std::wstring>& nameSet, 00079 void* userData ); 00080 00085 class DT_DLL_VL DtReserveMultipleNamesCbList 00086 { 00087 public: 00088 00090 DtReserveMultipleNamesCbList(); 00091 00093 virtual ~DtReserveMultipleNamesCbList(); 00094 00096 DtReserveMultipleNamesCbList( const DtReserveMultipleNamesCbList& orig); 00097 00099 DtReserveMultipleNamesCbList& operator=( const DtReserveMultipleNamesCbList& orig); 00100 00103 virtual int add( DtReserveMultipleNamesCb cb, void* usr); 00104 virtual int remove( DtReserveMultipleNamesCb cb, void* usr); 00105 00107 virtual void clear(); 00108 00112 virtual void apply(const std::set<std::wstring>& nameSet); 00113 00114 protected: 00115 00119 void dtorClear(); 00120 00123 void ctorCopyList(const DtReserveMultipleNamesCbList& orig); 00124 00125 protected: 00126 00127 DtList myList; 00128 }; 00129 #endif // evolved 00130 00131 #endif 00132 #endif 00133 #endif 00134