MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pHandValSet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: pHandValSet.h,v $ $Revision: 1.13 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtPhvps_H_
13 #define DtPhvps_H_
14 
15 #include "rtiMsConfig.h"
16 #include <memory>
17 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
18 #include "RTI/RTI1516.h"
19 #else
20 #ifdef DtIFSPEC13DLC
21 #include "RTI13.h"
22 #else
23 #include "RTI.hh"
24 #endif
25 #endif
26 #include "internalTypes.h"
27 
29 
30 #ifdef DtIFSPEC1516
31 
32 class DT_DLL_LRC DtPhvps
33 {
34 public:
35 
37  DtPhvps(rti1516::ParameterHandleValueMap* phvpm);
38 
40  virtual ~DtPhvps();
41 
42  virtual MAKRti::DtU32 size() const;
43 
44  virtual DtParameterHandle getHandle(MAKRti::DtU32 i) const;
45 
46  virtual MAKRti::DtU32 getValueLength(MAKRti::DtU32 i) const;
47 
48  virtual void getValue(MAKRti::DtU32 i, char *buff,
49  MAKRti::DtU32& valueLength) const;
50 
51  virtual char *getValuePointer(MAKRti::DtU32 i,
52  MAKRti::DtU32& valueLength) const;
53 
54  virtual unsigned long getTransportType() const;
55 
56  virtual unsigned long getOrderType() const;
57 
58  virtual void print(DtInteractionClassInfo* fomClass) const;
59 
60  virtual void add(DtParameterHandle h, const char *buff,
61  MAKRti::DtU32 valueLength);
62 
63  virtual void addPointer(DtParameterHandle h, void const* buff,
64  MAKRti::DtU32 valueLength);
65 
66  virtual void remove(DtParameterHandle h);
67 
68  virtual void moveFrom(DtPhvps& phvp, MAKRti::DtU32 &i);
69 
70  virtual void empty();
71 
72  virtual MAKRti::DtU32 start() const;
73  virtual MAKRti::DtU32 valid(MAKRti::DtU32 i) const;
74  virtual MAKRti::DtU32 next(MAKRti::DtU32 i) const;
75 
76  virtual rti1516::ParameterHandleValueMap::const_iterator
77  getConstIterator(MAKRti::DtU32 i) const;
78  virtual rti1516::ParameterHandleValueMap::iterator
79  getIterator(MAKRti::DtU32 i);
80 
81  virtual void print() const;
82 
83  virtual rti1516::ParameterHandleValueMap* getImplementation() const ;
84 
86  virtual void setChannel(unsigned long channelValue);
87  virtual unsigned long channel() const;
88 
90  virtual void setTransportType(unsigned long type);
91  virtual unsigned long transportType() const;
92 
94  virtual void setOrderType(unsigned long type);
95  virtual unsigned long orderType() const;
96 
97 public:
98  static void setDefaultChannel(unsigned long defaultChannelValue);
99  static unsigned long defaultChannel();
100 
101 private:
103  DtPhvps();
104 
105 protected:
106 
107  static unsigned long theDefaultChannel;
108  unsigned long myChannel;
109 
110  rti1516::ParameterHandleValueMap* myPhvpMap;
111 
112  unsigned long myTransportType;
113  unsigned long myOrderType;
114 };
115 
116 #elif defined(DtIFSPEC1516E)
117 
118 class DT_DLL_LRC DtPhvps
119 {
120 public:
121 
123  DtPhvps(rti1516e::ParameterHandleValueMap* phvpm);
124 
126  virtual ~DtPhvps();
127 
128  virtual MAKRti::DtU32 size() const;
129 
130  virtual DtParameterHandle getHandle(MAKRti::DtU32 i) const;
131 
132  virtual MAKRti::DtU32 getValueLength(MAKRti::DtU32 i) const;
133 
134  virtual void getValue(MAKRti::DtU32 i, char *buff,
135  MAKRti::DtU32& valueLength) const;
136 
137  virtual char *getValuePointer(MAKRti::DtU32 i,
138  MAKRti::DtU32& valueLength) const;
139 
140  virtual unsigned long getTransportType() const;
141 
142  virtual unsigned long getOrderType() const;
143 
144  virtual void print(DtInteractionClassInfo* fomClass) const;
145 
146  virtual void add(DtParameterHandle h, const char *buff,
147  MAKRti::DtU32 valueLength);
148 
149  virtual void addPointer(DtParameterHandle h, void const* buff,
150  MAKRti::DtU32 valueLength);
151 
152  virtual void remove(DtParameterHandle h);
153 
154  virtual void moveFrom(DtPhvps& phvp, MAKRti::DtU32 &i);
155 
156  virtual void empty();
157 
158  virtual MAKRti::DtU32 start() const;
159  virtual MAKRti::DtU32 valid(MAKRti::DtU32 i) const;
160  virtual MAKRti::DtU32 next(MAKRti::DtU32 i) const;
161 
162  virtual rti1516e::ParameterHandleValueMap::const_iterator
163  getConstIterator(MAKRti::DtU32 i) const;
164  virtual rti1516e::ParameterHandleValueMap::iterator
165  getIterator(MAKRti::DtU32 i);
166 
167  virtual void print() const;
168 
169  virtual rti1516e::ParameterHandleValueMap* getImplementation() const ;
170 
172  virtual void setChannel(unsigned long channelValue);
173  virtual unsigned long channel() const;
174 
176  virtual void setTransportType(unsigned long type);
177  virtual unsigned long transportType() const;
178 
180  virtual void setOrderType(unsigned long type);
181  virtual unsigned long orderType() const;
182 
183 public:
184  static void setDefaultChannel(unsigned long defaultChannelValue);
185  static unsigned long defaultChannel();
186 
187 private:
189  DtPhvps();
190 
191 protected:
192 
193  static unsigned long theDefaultChannel;
194  unsigned long myChannel;
195 
196  rti1516e::ParameterHandleValueMap* myPhvpMap;
197 
198  unsigned long myTransportType;
199  unsigned long myOrderType;
200 };
201 
202 
203 #else
204 
205 #define DtHvps DtPhvps
206 #define HandleValuePairSet ParameterHandleValuePairSet
207 #define DtDEFINING_PHVPS 1
208 
209 #include "intClassInfo.h"
210 #include "handleValSet.h"
211 
212 #undef DtHvps
213 #undef HandleValuePairSet
214 #undef DtDEFINING_PHVPS
215 
216 #endif
217 
218 #endif

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)