MAK RTIspy API Documentation for HLA Evolved
 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 #if defined(DtMOM) && (defined(DtIFSPEC13) || defined(DtIFSPEC1516) || defined(DtIFSPEC1516E))
9 
12 
13 #pragma once
14 
15 #include "rtiMsConfig.h"
16 #include "internalTypes.h"
17 #include "mInteraction.h"
18 #include <vlutil/vlList.h>
19 
20 class DtMomInterCbMgr;
21 class DtSetServiceReportingInteraction;
22 typedef void (*DtSetServiceReportingInteractionCb)
23  (const DtSetServiceReportingInteraction& inter, void* usr);
24 
25 class DT_DLL_LRC DtSetServiceReportingInteraction :
26  public DtAdjustInteraction
27 {
28 public:
29 
31  DtSetServiceReportingInteraction();
32 
34  virtual ~DtSetServiceReportingInteraction();
35 
37  DtSetServiceReportingInteraction(
38  const DtSetServiceReportingInteraction& orig);
39 
41  DtSetServiceReportingInteraction& operator=(
42  const DtSetServiceReportingInteraction& orig);
43 
46  virtual const DtPhvps& phvps();
47 
50  virtual bool setFromPhvps(const DtPhvps& phvps);
51 
53  virtual bool reportingState() const;
54  virtual void setReportingState(bool data);
55 
56 
57 public:
59  static DtAdjustInteraction* create();
60 
62  static void addCallback(DtMomInterCbMgr* callBackManager,
63  DtSetServiceReportingInteractionCb cb, void* usr);
64  static void removeCallback(DtMomInterCbMgr* callBackManager,
65  DtSetServiceReportingInteractionCb cb, void* usr);
66 
67 protected:
68 
70  virtual void encodeReportingState(
71  const DtMomInteraction& data,
72  DtPhvps* parameters,
73  DtParameterHandle parameterHandle);
74 
76  virtual void decodeReportingState(
77  DtMomInteraction* data,
78  const DtPhvps& parameters,
79  int index);
80 
81 public:
82  static const char* theInteractionName;
83 
84 protected:
86  bool myReportingState;
87  bool myReceivedReportingState;
88 
89  const char *REPORTING_STATE_PARAMETER_NAME;
90 
91 };
92 
93 #endif
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Definition: pHandValSet.h:38
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:56

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)