MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
repRefRec.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: repRefRec.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtReportReflectionsReceivedInteraction_H_
14 #define DtReportReflectionsReceivedInteraction_H_
15 
16 #include "rtiMsConfig.h"
17 #include "internalTypes.h"
18 #include "mInteraction.h"
19 #include <vlutil/vlList.h>
20 
21 class DtMomInterCbMgr;
22 class DtReportReflectionsReceivedInteraction;
23 typedef void (*DtReportReflectionsReceivedInteractionCb)
24  (const DtReportReflectionsReceivedInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtReportReflectionsReceivedInteraction :
27  public DtReportInteraction
28 {
29 public:
30 
32  DtReportReflectionsReceivedInteraction();
33 
35  virtual ~DtReportReflectionsReceivedInteraction();
36 
38  DtReportReflectionsReceivedInteraction(
39  const DtReportReflectionsReceivedInteraction& orig);
40 
42  DtReportReflectionsReceivedInteraction& operator=(
43  const DtReportReflectionsReceivedInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54  virtual DtMomTallyList const& reflectCounts() const;
55  virtual DtMomTallyList & reflectCounts();
56 
58  virtual MAKRti::DtTransportType transportationType() const;
59  virtual void setTransportationType(MAKRti::DtTransportType data);
60 
61 
62 public:
64  static DtReportInteraction* create();
65 
67  static void addCallback(DtMomInterCbMgr* callBackManager,
68  DtReportReflectionsReceivedInteractionCb cb, void* usr);
69  static void removeCallback(DtMomInterCbMgr* callBackManager,
70  DtReportReflectionsReceivedInteractionCb cb, void* usr);
71 
72 protected:
73 
78  virtual void encodeReflectCounts(
79  const DtMomInteraction& data,
80  DtPhvps* parameters,
81  DtParameterHandle parameterHandle);
82 
84  virtual void encodeTransportationType(
85  const DtMomInteraction& data,
86  DtPhvps* parameters,
87  DtParameterHandle parameterHandle);
88 
90  virtual void decodeReflectCounts(
91  DtMomInteraction* data,
92  const DtPhvps& parameters,
93  int index);
94 
96  virtual void decodeTransportationType(
97  DtMomInteraction* data,
98  const DtPhvps& parameters,
99  int index);
100 
101 public:
102  static const char* theInteractionName;
103 
104 protected:
106  DtMomTallyList myReflectCounts;
107  MAKRti::DtTransportType myTransportationType;
108 
109  const char *REFLECT_COUNTS_PARAMETER_NAME;
110  const char *TRANSPORTATION_TYPE_PARAMETER_NAME;
111 
112 };
113 
114 #endif
115 #endif
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:38

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)