MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
repIntRec.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: repIntRec.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtReportInteractionsReceivedInteraction_H_
14 #define DtReportInteractionsReceivedInteraction_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 DtReportInteractionsReceivedInteraction;
23 typedef void (*DtReportInteractionsReceivedInteractionCb)
24  (const DtReportInteractionsReceivedInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtReportInteractionsReceivedInteraction :
27  public DtReportInteraction
28 {
29 public:
30 
32  DtReportInteractionsReceivedInteraction();
33 
35  virtual ~DtReportInteractionsReceivedInteraction();
36 
38  DtReportInteractionsReceivedInteraction(
39  const DtReportInteractionsReceivedInteraction& orig);
40 
42  DtReportInteractionsReceivedInteraction& operator=(
43  const DtReportInteractionsReceivedInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54  virtual DtMomTallyList & interactionCounts();
55  virtual DtMomTallyList const & interactionCounts() const;
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  DtReportInteractionsReceivedInteractionCb cb, void* usr);
69  static void removeCallback(DtMomInterCbMgr* callBackManager,
70  DtReportInteractionsReceivedInteractionCb cb, void* usr);
71 
72 protected:
73 
76  virtual void encodeInteractionCounts(
77  const DtMomInteraction& data,
78  DtPhvps* parameters,
79  DtParameterHandle parameterHandle);
80 
82  virtual void encodeTransportationType(
83  const DtMomInteraction& data,
84  DtPhvps* parameters,
85  DtParameterHandle parameterHandle);
86 
89  virtual void decodeInteractionCounts(
90  DtMomInteraction* data,
91  const DtPhvps& parameters,
92  int index);
93 
95  virtual void decodeTransportationType(
96  DtMomInteraction* data,
97  const DtPhvps& parameters,
98  int index);
99 
100 public:
101  static const char* theInteractionName;
102 
103 protected:
105  DtMomTallyList myInteractionCounts;
106  MAKRti::DtTransportType myTransportationType;
107 
108  const char *INTERACTION_COUNTS_PARAMETER_NAME;
109  const char *TRANSPORTATION_TYPE_PARAMETER_NAME;
110 
111 };
112 
113 #endif
114 #endif

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)