VR-Link API Documentation for HLA Evolved
updCtlCbInfo.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00010 
00011 #ifndef DtUpdateControlCbInfo_H_
00012 #define DtUpdateControlCbInfo_H_
00013 
00014 #if DtHLA 
00015 
00016 #include "updCtlCbList.h"
00017 #include "stateMsg.h"
00018 #include "rtiNamespace.h"
00019 
00024 class DT_DLL_VL DtUpdateControlCbInfo
00025 {
00026 public:
00027 
00029    DtUpdateControlCbInfo(
00030 #if DtHLA_1516
00031       RTI::ObjectInstanceHandle hand,
00032 #else
00033       RTI::ObjectHandle hand,
00034 #endif
00035       DtUpdateControlCb cb,
00036       void* usr);
00037 
00039    virtual ~DtUpdateControlCbInfo();
00040 
00042    DtUpdateControlCbInfo(
00043       const DtUpdateControlCbInfo& orig);
00044 
00046    DtUpdateControlCbInfo& operator=(
00047       const DtUpdateControlCbInfo& orig);
00048 
00050    virtual int match(const DtUpdateControlCbInfo* const other) const;
00051 
00053    virtual int operator==(const DtUpdateControlCbInfo& other) const;
00054 
00056 #if DtHLA_1516
00057    virtual const RTI::ObjectInstanceHandle& objectHandle() const;
00058 #else
00059    virtual const RTI::ObjectHandle& objectHandle() const;
00060 #endif
00061 
00063    virtual const DtUpdateControlCb& cbFunction() const;
00064 
00066    virtual void* userData() const;
00067 
00068 protected:
00069 
00070 #if DtHLA_1516
00071    RTI::ObjectInstanceHandle myHand;
00072 #else
00073    RTI::ObjectHandle myHand;
00074 #endif
00075    DtUpdateControlCb myFunc;
00076    void* myUsr;
00077 };
00078 
00079 typedef DtUpdateControlCbInfo DtUpdatesOnCbInfo;
00080 typedef DtUpdateControlCbInfo DtUpdatesOnCbInfo;
00081 
00082 #if DtHLA_1516
00083 inline const RTI::ObjectInstanceHandle& 
00084 #else
00085 inline const RTI::ObjectHandle& 
00086 #endif
00087 DtUpdateControlCbInfo::objectHandle() const
00088 {
00089    return myHand;
00090 }
00091 
00092 inline const DtUpdateControlCb& DtUpdateControlCbInfo::cbFunction() const
00093 {
00094    return myFunc;
00095 }
00096 
00097 inline void* DtUpdateControlCbInfo::userData() const
00098 {
00099    return myUsr;
00100 }
00101 
00102 #endif
00103 #endif
00104 

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)