![]() |
VR-Link API Documentation for DIS
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00009 00010 #ifndef DtRegControlCbList_H_ 00011 #define DtRegControlCbList_H_ 00012 00013 #if DtHLA 00014 00015 #include <vlutil/vlList.h> 00016 #include "rtiNamespace.h" 00017 00018 00019 00020 typedef void (*DtRegControlCb)( 00021 RTI::ObjectClassHandle objectClass, 00022 void* usr); 00023 00024 typedef DtRegControlCb DtStartRegCb; 00025 typedef DtRegControlCb DtStopRegCb; 00026 00027 00028 00032 class DT_DLL_VL DtRegControlCbList 00033 { 00034 public: 00035 00037 DtRegControlCbList(); 00038 00040 virtual ~DtRegControlCbList(); 00041 00043 DtRegControlCbList( 00044 const DtRegControlCbList& orig); 00045 00047 DtRegControlCbList& operator=( 00048 const DtRegControlCbList& orig); 00049 00052 virtual int add(RTI::ObjectClassHandle h, DtRegControlCb cb, 00053 void* usr); 00054 virtual int remove(RTI::ObjectClassHandle h, DtRegControlCb cb, 00055 void* usr); 00056 00058 virtual void clear(); 00059 00062 virtual void apply(RTI::ObjectClassHandle objectClass); 00063 00064 protected: 00065 00069 void dtorClear(); 00070 00073 void ctorCopyList(const DtRegControlCbList& orig); 00074 00075 protected: 00076 00077 DtList myList; 00078 }; 00079 00080 typedef DtRegControlCbList DtStartRegCbList; 00081 typedef DtRegControlCbList DtStopRegCbList; 00082 00083 #endif 00084 #endif 00085