![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: setSerRep.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 *********************************************************************/ 00008 #ifdef DtMOM 00009 00012 00013 #ifndef DtSetServiceReportingInteraction_H_ 00014 #define DtSetServiceReportingInteraction_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 DtSetServiceReportingInteraction; 00023 typedef void (*DtSetServiceReportingInteractionCb) 00024 (const DtSetServiceReportingInteraction& inter, void* usr); 00025 00026 class DT_DLL_LRC DtSetServiceReportingInteraction : 00027 public DtAdjustInteraction 00028 { 00029 public: 00030 00032 DtSetServiceReportingInteraction(); 00033 00035 virtual ~DtSetServiceReportingInteraction(); 00036 00038 DtSetServiceReportingInteraction( 00039 const DtSetServiceReportingInteraction& orig); 00040 00042 DtSetServiceReportingInteraction& operator=( 00043 const DtSetServiceReportingInteraction& orig); 00044 00047 virtual const DtPhvps& phvps(); 00048 00051 virtual bool setFromPhvps(const DtPhvps& phvps); 00052 00054 virtual bool reportingState() const; 00055 virtual void setReportingState(bool data); 00056 00057 00058 public: 00060 static DtAdjustInteraction* create(); 00061 00063 static void addCallback(DtMomInterCbMgr* callBackManager, 00064 DtSetServiceReportingInteractionCb cb, void* usr); 00065 static void removeCallback(DtMomInterCbMgr* callBackManager, 00066 DtSetServiceReportingInteractionCb cb, void* usr); 00067 00068 protected: 00069 00071 virtual void encodeReportingState( 00072 const DtMomInteraction& data, 00073 DtPhvps* parameters, 00074 DtParameterHandle parameterHandle); 00075 00077 virtual void decodeReportingState( 00078 DtMomInteraction* data, 00079 const DtPhvps& parameters, 00080 int index); 00081 00082 public: 00083 static const char* theInteractionName; 00084 00085 protected: 00087 bool myReportingState; 00088 bool myReceivedReportingState; 00089 00090 const char *REPORTING_STATE_PARAMETER_NAME; 00091 00092 }; 00093 00094 #endif 00095 #endif