![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: setExcLog.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 *********************************************************************/ 00008 #ifdef DtMOM 00009 00012 00013 #ifndef DtSetExceptionLoggingInteraction_H_ 00014 #define DtSetExceptionLoggingInteraction_H_ 00015 00016 #include "rtiMsConfig.h" 00017 #include "internalTypes.h" 00018 #include "mInteraction.h" 00019 #include <vlutil/vlList.h> 00020 00021 class DtMomInterCbMgr; 00022 class DtSetExceptionLoggingInteraction; 00023 typedef void (*DtSetExceptionLoggingInteractionCb) 00024 (const DtSetExceptionLoggingInteraction& inter, void* usr); 00025 00026 class DT_DLL_LRC DtSetExceptionLoggingInteraction : 00027 public DtAdjustInteraction 00028 { 00029 public: 00030 00032 DtSetExceptionLoggingInteraction(); 00033 00035 virtual ~DtSetExceptionLoggingInteraction(); 00036 00038 DtSetExceptionLoggingInteraction( 00039 const DtSetExceptionLoggingInteraction& orig); 00040 00042 DtSetExceptionLoggingInteraction& operator=( 00043 const DtSetExceptionLoggingInteraction& orig); 00044 00047 virtual const DtPhvps& phvps(); 00048 00051 virtual bool setFromPhvps(const DtPhvps& phvps); 00052 00054 virtual bool loggingState() const; 00055 virtual void setLoggingState(bool data); 00056 00057 00058 public: 00060 static DtAdjustInteraction* create(); 00061 00063 static void addCallback(DtMomInterCbMgr* callBackManager, 00064 DtSetExceptionLoggingInteractionCb cb, void* usr); 00065 static void removeCallback(DtMomInterCbMgr* callBackManager, 00066 DtSetExceptionLoggingInteractionCb cb, void* usr); 00067 00068 protected: 00069 00071 virtual void encodeLoggingState( 00072 const DtMomInteraction& data, 00073 DtPhvps* parameters, 00074 DtParameterHandle parameterHandle); 00075 00077 virtual void decodeLoggingState( 00078 DtMomInteraction* data, 00079 const DtPhvps& parameters, 00080 int index); 00081 00082 public: 00083 static const char* theInteractionName; 00084 00085 protected: 00087 bool myLoggingState; 00088 bool myReceivedLoggingState; 00089 00090 const char *LOGGING_STATE_PARAMETER_NAME; 00091 00092 }; 00093 00094 #endif 00095 #endif