MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
repObjRef.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: repObjRef.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtReportObjectsReflectedInteraction_H_
14 #define DtReportObjectsReflectedInteraction_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 DtReportObjectsReflectedInteraction;
23 typedef void (*DtReportObjectsReflectedInteractionCb)
24  (const DtReportObjectsReflectedInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtReportObjectsReflectedInteraction :
27  public DtReportInteraction
28 {
29 public:
30 
32  DtReportObjectsReflectedInteraction();
33 
35  virtual ~DtReportObjectsReflectedInteraction();
36 
38  DtReportObjectsReflectedInteraction(
39  const DtReportObjectsReflectedInteraction& orig);
40 
42  DtReportObjectsReflectedInteraction& operator=(
43  const DtReportObjectsReflectedInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54  virtual DtMomTallyList const& objectCounts() const;
55  virtual DtMomTallyList & objectCounts();
56 
57 
58 public:
60  static DtReportInteraction* create();
61 
63  static void addCallback(DtMomInterCbMgr* callBackManager,
64  DtReportObjectsReflectedInteractionCb cb, void* usr);
65  static void removeCallback(DtMomInterCbMgr* callBackManager,
66  DtReportObjectsReflectedInteractionCb cb, void* usr);
67 
68 protected:
73  virtual void encodeObjectCounts(
74  const DtMomInteraction& data,
75  DtPhvps* parameters,
76  DtParameterHandle parameterHandle);
77 
79  virtual void decodeObjectCounts(
80  DtMomInteraction* data,
81  const DtPhvps& parameters,
82  int index);
83 
84 public:
85  static const char* theInteractionName;
86 
87 protected:
89  DtMomTallyList myObjectCounts;
90 
91  const char *OBJECT_COUNTS_PARAMETER_NAME;
92 
93 };
94 
95 #endif
96 #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)