MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serSynAch.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serSynAch.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtSynchronizationPointAchievedInteraction_H_
14 #define DtSynchronizationPointAchievedInteraction_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 DtSynchronizationPointAchievedInteraction;
23 typedef void (*DtSynchronizationPointAchievedInteractionCb)
24  (const DtSynchronizationPointAchievedInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtSynchronizationPointAchievedInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtSynchronizationPointAchievedInteraction();
33 
35  virtual ~DtSynchronizationPointAchievedInteraction();
36 
38  DtSynchronizationPointAchievedInteraction(
39  const DtSynchronizationPointAchievedInteraction& orig);
40 
42  DtSynchronizationPointAchievedInteraction& operator=(
43  const DtSynchronizationPointAchievedInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
55  virtual std::wstring const & label() const;
56  virtual std::wstring & label();
57  virtual void setLabel(std::wstring const & data);
58 #else
59  virtual MAKRti::DtString const & label() const;
60  virtual void setLabel(MAKRti::DtString const & data);
61 #endif
62 
63 
64 public:
66  static DtServiceInteraction* create();
67 
69  static void addCallback(DtMomInterCbMgr* callBackManager,
70  DtSynchronizationPointAchievedInteractionCb cb, void* usr);
71  static void removeCallback(DtMomInterCbMgr* callBackManager,
72  DtSynchronizationPointAchievedInteractionCb cb, void* usr);
73 
74 protected:
75 
77  virtual void encodeLabel(
78  const DtMomInteraction& data,
79  DtPhvps* parameters,
80  DtParameterHandle parameterHandle);
81 
83  virtual void decodeLabel(
84  DtMomInteraction* data,
85  const DtPhvps& parameters,
86  int index);
87 
88 public:
89  static const char* theInteractionName;
90 
91 protected:
93 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
94  std::wstring myLabel;
95 #else
96  MAKRti::DtString myLabel;
97 #endif
98  bool myReceivedLabel;
99 
100  const char *LABEL_PARAMETER_NAME;
101 
102 };
103 
104 #endif
105 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)