MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
serChgAttrTra.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serChgAttrTra.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtChangeAttributeTransportationTypeInteraction_H_
14 #define DtChangeAttributeTransportationTypeInteraction_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 DtChangeAttributeTransportationTypeInteraction;
23 typedef void (*DtChangeAttributeTransportationTypeInteractionCb)
24  (const DtChangeAttributeTransportationTypeInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtChangeAttributeTransportationTypeInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtChangeAttributeTransportationTypeInteraction();
33 
35  virtual ~DtChangeAttributeTransportationTypeInteraction();
36 
38  DtChangeAttributeTransportationTypeInteraction(
39  const DtChangeAttributeTransportationTypeInteraction& orig);
40 
42  DtChangeAttributeTransportationTypeInteraction& operator=(
43  const DtChangeAttributeTransportationTypeInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E) || defined(DtIFSPEC1516_2025)
55  virtual DtObjectInstanceHandle instance() const;
56  virtual void setInstance(DtObjectInstanceHandle data);
57 #else
58  virtual MAKRti::DtString const & instance() const;
59  virtual MAKRti::DtString & instance();
60  virtual void setInstance(MAKRti::DtString const & data);
61 #endif
62 
64  virtual DtAttributeHandleSet const & attributeList() const;
65  virtual DtAttributeHandleSet & attributeList();
66  virtual void setAttributeList(DtAttributeHandleSet const & data);
67 
69  virtual MAKRti::DtTransportType transport() const;
70  virtual void setTransport( MAKRti::DtTransportType data );
71 
72 public:
74  static DtServiceInteraction* create();
75 
77  static void addCallback(DtMomInterCbMgr* callBackManager,
78  DtChangeAttributeTransportationTypeInteractionCb cb, void* usr);
79  static void removeCallback(DtMomInterCbMgr* callBackManager,
80  DtChangeAttributeTransportationTypeInteractionCb cb, void* usr);
81 
82 protected:
83 
85  virtual void encodeInstance(
86  const DtMomInteraction& data,
87  DtPhvps* parameters,
88  DtParameterHandle parameterHandle);
89 
91  virtual void decodeInstance(
92  DtMomInteraction* data,
93  const DtPhvps& parameters,
94  int index);
95 
97  virtual void encodeTransportType(
98  const DtMomInteraction& data,
99  DtPhvps* parameters,
100  DtParameterHandle parameterHandle);
101 
103  virtual void decodeTransportType(
104  DtMomInteraction* data,
105  const DtPhvps& parameters,
106  int index);
107 
109  virtual void encodeAttributeList(
110  const DtMomInteraction& data,
111  DtPhvps* parameters,
112  DtParameterHandle parameterHandle);
113  virtual void decodeAttributeList(
114  DtMomInteraction* data,
115  const DtPhvps& parameters,
116  int index);
117 
118 public:
119  static const char* theInteractionName;
120 
121 protected:
123 
124  DtAttributeHandleSet myAttributes;
125  MAKRti::DtTransportType myTransport;
126 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E) || defined(DtIFSPEC1516_2025)
127  DtObjectInstanceHandle myInstance;
128 #else
129  MAKRti::DtString myInstance;
130 #endif
131  bool myReceivedAttributes;
132  bool myReceivedTransport;
133  bool myReceivedInstance;
134 
135  const char* OBJECT_INSTANCE_PARAMETER_NAME;
136  const char* ATTRIBUTE_LIST_PARAMETER_NAME;
137  const char* TRANSPORTATION_PARAMETER_NAME;
138 
139 };
140 
141 #endif
142 #endif
Defines the internal representation of attribute/parameter handle sets.
Definition: attrHandSet.h:30
DtHandle DtObjectInstanceHandle
Definition: internalTypes.h:50
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Definition: pHandValSet.h:38
The declaration of internal types.
DtHandle DtParameterHandle
Definition: internalTypes.h:56

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)