MAK RTIspy API Documentation for HLA 1.3
serChgIntOrd.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serChgIntOrd.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtChangeInteractionOrderTypeInteraction_H_
14 #define DtChangeInteractionOrderTypeInteraction_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 DtChangeInteractionOrderTypeInteraction;
23 typedef void (*DtChangeInteractionOrderTypeInteractionCb)
24  (const DtChangeInteractionOrderTypeInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtChangeInteractionOrderTypeInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtChangeInteractionOrderTypeInteraction();
33 
35  virtual ~DtChangeInteractionOrderTypeInteraction();
36 
38  DtChangeInteractionOrderTypeInteraction(
39  const DtChangeInteractionOrderTypeInteraction& orig);
40 
42  DtChangeInteractionOrderTypeInteraction& operator=(
43  const DtChangeInteractionOrderTypeInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54  virtual DtInteractionClassHandle interactionHandle() const;
55  virtual void setInteractionHandle(DtInteractionClassHandle data);
56 
58  virtual MAKRti::DtOrderType order() const;
59  virtual void setOrder( MAKRti::DtOrderType data );
60 
61 
62 public:
64  static DtServiceInteraction* create();
65 
67  static void addCallback(DtMomInterCbMgr* callBackManager,
68  DtChangeInteractionOrderTypeInteractionCb cb, void* usr);
69  static void removeCallback(DtMomInterCbMgr* callBackManager,
70  DtChangeInteractionOrderTypeInteractionCb cb, void* usr);
71 
72 protected:
73 
75  virtual void encodeInteractionHandle(
76  const DtMomInteraction& data,
77  DtPhvps* parameters,
78  DtParameterHandle parameterHandle);
79 
81  virtual void decodeInteractionHandle(
82  DtMomInteraction* data,
83  const DtPhvps& parameters,
84  int index);
85 
87  virtual void encodeOrderType(
88  const DtMomInteraction& data,
89  DtPhvps* parameters,
90  DtParameterHandle parameterHandle);
91 
93  virtual void decodeOrderType(
94  DtMomInteraction* data,
95  const DtPhvps& parameters,
96  int index);
97 
98 public:
99  static const char* theInteractionName;
100 
101 protected:
103  DtInteractionClassHandle myInteractionHandle;
104  MAKRti::DtOrderType myOrder;
105  bool myReceivedInteractionHandle;
106  bool myReceivedOrder;
107 
108  const char *INTERACTION_HANDLE_PARAMETER_NAME;
109  const char *ORDER_TYPE_PARAMETER_NAME;
110 
111 };
112 
113 #endif
114 #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)