MAK RTIspy API Documentation for HLA 1516
serSavCom.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serSavCom.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtFederateSaveCompleteInteraction_H_
14 #define DtFederateSaveCompleteInteraction_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 DtFederateSaveCompleteInteraction;
23 typedef void (*DtFederateSaveCompleteInteractionCb)
24  (const DtFederateSaveCompleteInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtFederateSaveCompleteInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtFederateSaveCompleteInteraction();
33 
35  virtual ~DtFederateSaveCompleteInteraction();
36 
38  DtFederateSaveCompleteInteraction(
39  const DtFederateSaveCompleteInteraction& orig);
40 
42  DtFederateSaveCompleteInteraction& operator=(
43  const DtFederateSaveCompleteInteraction& 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  DtFederateSaveCompleteInteractionCb cb, void* usr);
70  static void removeCallback(DtMomInterCbMgr* callBackManager,
71  DtFederateSaveCompleteInteractionCb 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 Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)