MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serChgIntTra.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serChgIntTra.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtChangeInteractionTransportationTypeInteraction_H_
14 #define DtChangeInteractionTransportationTypeInteraction_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 DtChangeInteractionTransportationTypeInteraction;
23 typedef void (*DtChangeInteractionTransportationTypeInteractionCb)
24  (const DtChangeInteractionTransportationTypeInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtChangeInteractionTransportationTypeInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtChangeInteractionTransportationTypeInteraction();
33 
35  virtual ~DtChangeInteractionTransportationTypeInteraction();
36 
38  DtChangeInteractionTransportationTypeInteraction(
39  const DtChangeInteractionTransportationTypeInteraction& orig);
40 
42  DtChangeInteractionTransportationTypeInteraction& operator=(
43  const DtChangeInteractionTransportationTypeInteraction& 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::DtTransportType transport() const;
59  virtual void setTransport( MAKRti::DtTransportType data );
60 
61 
62 public:
64  static DtServiceInteraction* create();
65 
67  static void addCallback(DtMomInterCbMgr* callBackManager,
68  DtChangeInteractionTransportationTypeInteractionCb cb, void* usr);
69  static void removeCallback(DtMomInterCbMgr* callBackManager,
70  DtChangeInteractionTransportationTypeInteractionCb 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 encodeTransportType(
88  const DtMomInteraction& data,
89  DtPhvps* parameters,
90  DtParameterHandle parameterHandle);
91 
93  virtual void decodeTransportType(
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::DtTransportType myTransport;
105  bool myReceivedInteractionHandle;
106  bool myReceivedTransport;
107 
108  const char *INTERACTION_HANDLE_PARAMETER_NAME;
109  const char *TRANSPORT_TYPE_PARAMETER_NAME;
110 
111 };
112 
113 #endif
114 #endif
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:35
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:38

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)