MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serResCom.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serResCom.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtFederateRestoreCompleteInteraction_H_
14 #define DtFederateRestoreCompleteInteraction_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 DtFederateRestoreCompleteInteraction;
23 typedef void (*DtFederateRestoreCompleteInteractionCb)
24  (const DtFederateRestoreCompleteInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtFederateRestoreCompleteInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtFederateRestoreCompleteInteraction();
33 
35  virtual ~DtFederateRestoreCompleteInteraction();
36 
38  DtFederateRestoreCompleteInteraction(
39  const DtFederateRestoreCompleteInteraction& orig);
40 
42  DtFederateRestoreCompleteInteraction& operator=(
43  const DtFederateRestoreCompleteInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
55  virtual bool parametersAreInvalid();
56 
59  virtual unsigned long successIndicator() const;
60  virtual void setSuccessIndicator(unsigned long data);
61 
62 
63 public:
65  static DtServiceInteraction* create();
66 
68  static void addCallback(DtMomInterCbMgr* callBackManager,
69  DtFederateRestoreCompleteInteractionCb cb, void* usr);
70  static void removeCallback(DtMomInterCbMgr* callBackManager,
71  DtFederateRestoreCompleteInteractionCb cb, void* usr);
72 
73 protected:
74 
76  virtual void encodeSuccessIndicator(
77  const DtMomInteraction& data,
78  DtPhvps* parameters,
79  DtParameterHandle parameterHandle);
80 
82  virtual void decodeSuccessIndicator(
83  DtMomInteraction* data,
84  const DtPhvps& parameters,
85  int index);
86 
87 public:
88  static const char* theInteractionName;
89 
90 protected:
93  unsigned long mySuccess;
94  bool myReceivedSuccess;
95 
96  const char *SUCCESS_INDICATOR_PARAMETER_NAME;
97 
98 };
99 
100 #endif
101 #endif

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)