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