![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: repIntRec.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 *********************************************************************/ 00008 #ifdef DtMOM 00009 00012 00013 #ifndef DtReportInteractionsReceivedInteraction_H_ 00014 #define DtReportInteractionsReceivedInteraction_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 DtReportInteractionsReceivedInteraction; 00023 typedef void (*DtReportInteractionsReceivedInteractionCb) 00024 (const DtReportInteractionsReceivedInteraction& inter, void* usr); 00025 00026 class DT_DLL_LRC DtReportInteractionsReceivedInteraction : 00027 public DtReportInteraction 00028 { 00029 public: 00030 00032 DtReportInteractionsReceivedInteraction(); 00033 00035 virtual ~DtReportInteractionsReceivedInteraction(); 00036 00038 DtReportInteractionsReceivedInteraction( 00039 const DtReportInteractionsReceivedInteraction& orig); 00040 00042 DtReportInteractionsReceivedInteraction& operator=( 00043 const DtReportInteractionsReceivedInteraction& orig); 00044 00047 virtual const DtPhvps& phvps(); 00048 00051 virtual bool setFromPhvps(const DtPhvps& phvps); 00052 00054 virtual DtMomTallyList & interactionCounts(); 00055 virtual DtMomTallyList const & interactionCounts() const; 00056 00058 virtual MAKRti::DtTransportType transportationType() const; 00059 virtual void setTransportationType(MAKRti::DtTransportType data); 00060 00061 00062 public: 00064 static DtReportInteraction* create(); 00065 00067 static void addCallback(DtMomInterCbMgr* callBackManager, 00068 DtReportInteractionsReceivedInteractionCb cb, void* usr); 00069 static void removeCallback(DtMomInterCbMgr* callBackManager, 00070 DtReportInteractionsReceivedInteractionCb cb, void* usr); 00071 00072 protected: 00073 00076 virtual void encodeInteractionCounts( 00077 const DtMomInteraction& data, 00078 DtPhvps* parameters, 00079 DtParameterHandle parameterHandle); 00080 00082 virtual void encodeTransportationType( 00083 const DtMomInteraction& data, 00084 DtPhvps* parameters, 00085 DtParameterHandle parameterHandle); 00086 00089 virtual void decodeInteractionCounts( 00090 DtMomInteraction* data, 00091 const DtPhvps& parameters, 00092 int index); 00093 00095 virtual void decodeTransportationType( 00096 DtMomInteraction* data, 00097 const DtPhvps& parameters, 00098 int index); 00099 00100 public: 00101 static const char* theInteractionName; 00102 00103 protected: 00105 DtMomTallyList myInteractionCounts; 00106 MAKRti::DtTransportType myTransportationType; 00107 00108 const char *INTERACTION_COUNTS_PARAMETER_NAME; 00109 const char *TRANSPORTATION_TYPE_PARAMETER_NAME; 00110 00111 }; 00112 00113 #endif 00114 #endif