MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
repObjOwned.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: repObjOwned.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtReportObjectsOwnedInteraction_H_
14 #define DtReportObjectsOwnedInteraction_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 DtReportObjectsOwnedInteraction;
23 typedef void (*DtReportObjectsOwnedInteractionCb)
24  (const DtReportObjectsOwnedInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtReportObjectsOwnedInteraction :
27  public DtReportInteraction
28 {
29 public:
30 
32  DtReportObjectsOwnedInteraction();
33 
35  virtual ~DtReportObjectsOwnedInteraction();
36 
38  DtReportObjectsOwnedInteraction(
39  const DtReportObjectsOwnedInteraction& orig);
40 
42  DtReportObjectsOwnedInteraction& operator=(
43  const DtReportObjectsOwnedInteraction& 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 public:
59  static DtReportInteraction* create();
60 
62  static void addCallback(DtMomInterCbMgr* callBackManager,
63  DtReportObjectsOwnedInteractionCb cb, void* usr);
64  static void removeCallback(DtMomInterCbMgr* callBackManager,
65  DtReportObjectsOwnedInteractionCb cb, void* usr);
66 
67 protected:
68 
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 Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)