VR-Link API Documentation for HLA 1.3
fedTimeCbList.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00009 
00010 #ifndef DtFedTimeCbList_H_
00011 #define DtFedTimeCbList_H_
00012 
00013 #if   DtHLA 
00014 
00015 #include <vlutil/vlList.h>
00016 
00017 
00018 #include "rtiNamespace.h"
00019 
00020 
00021 typedef void (*DtFedTimeCb)( 
00022 #if DtHLA_1516
00023    const RTI::LogicalTime &theFedTime,
00024 #else
00025    const RTI::FedTime &theFedTime,
00026 #endif
00027    void *theUserData);
00028 
00034 
00035 class DT_DLL_VL DtFedTimeCbList
00036 {
00037 public:
00038 
00040    DtFedTimeCbList();
00041 
00043    virtual ~DtFedTimeCbList();
00044 
00046    DtFedTimeCbList( const DtFedTimeCbList& orig);
00047 
00049    DtFedTimeCbList& operator=( const DtFedTimeCbList& orig);
00050 
00053    virtual int add( DtFedTimeCb cb, void* usr);
00054    virtual int remove( DtFedTimeCb cb, void* usr);
00055 
00057    virtual void clear();
00058 
00062 #if DtHLA_1516
00063    virtual void apply(const RTI::LogicalTime &theFedTime);
00064 #else
00065    virtual void apply(const RTI::FedTime &theFedTime);
00066 #endif
00067 
00068 protected:
00069 
00073    void dtorClear();
00074 
00077    void ctorCopyList(const DtFedTimeCbList& orig);
00078 
00079 protected:
00080 
00081    DtList myList;
00082 };
00083 
00084 #endif
00085 #endif
00086 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)