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