MAK RTIspy API Documentation for HLA Evolved
serChgAttrOrd.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: serChgAttrOrd.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 
13 #ifndef DtChangeAttributeOrderTypeInteraction_H_
14 #define DtChangeAttributeOrderTypeInteraction_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 DtChangeAttributeOrderTypeInteraction;
23 typedef void (*DtChangeAttributeOrderTypeInteractionCb)
24  (const DtChangeAttributeOrderTypeInteraction& inter, void* usr);
25 
26 class DT_DLL_LRC DtChangeAttributeOrderTypeInteraction :
27  public DtServiceInteraction
28 {
29 public:
30 
32  DtChangeAttributeOrderTypeInteraction();
33 
35  virtual ~DtChangeAttributeOrderTypeInteraction();
36 
38  DtChangeAttributeOrderTypeInteraction(
39  const DtChangeAttributeOrderTypeInteraction& orig);
40 
42  DtChangeAttributeOrderTypeInteraction& operator=(
43  const DtChangeAttributeOrderTypeInteraction& orig);
44 
47  virtual const DtPhvps& phvps();
48 
51  virtual bool setFromPhvps(const DtPhvps& phvps);
52 
54 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
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::DtOrderType order() const;
70  virtual void setOrder( MAKRti::DtOrderType data );
71 
72 public:
74  static DtServiceInteraction* create();
75 
77  static void addCallback(DtMomInterCbMgr* callBackManager,
78  DtChangeAttributeOrderTypeInteractionCb cb, void* usr);
79  static void removeCallback(DtMomInterCbMgr* callBackManager,
80  DtChangeAttributeOrderTypeInteractionCb 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 encodeOrderType(
98  const DtMomInteraction& data,
99  DtPhvps* parameters,
100  DtParameterHandle parameterHandle);
101 
103  virtual void decodeOrderType(
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 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
125  DtObjectInstanceHandle myInstance;
126 #else
127  MAKRti::DtString myInstance;
128 #endif
129  DtAttributeHandleSet myAttributes;
130  MAKRti::DtOrderType myOrder;
131 
132  bool myReceivedAttributes;
133  bool myReceivedOrder;
134  bool myReceivedInstance;
135 
136  const char *OBJECT_INSTANCE_PARAMETER_NAME;
137  const char *ATTRIBUTE_LIST_PARAMETER_NAME;
138  const char *ORDER_TYPE_PARAMETER_NAME;
139 
140 };
141 
142 #endif
143 #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)