1 #ifndef GSDFPACKETDCPS_IMPL_H_ 2 #define GSDFPACKETDCPS_IMPL_H_ 6 #include "ccpp_TypeSupport_impl.h" 7 #include "ccpp_DataWriter_impl.h" 8 #include "ccpp_DataReader_impl.h" 9 #include "ccpp_DataReaderView_impl.h" 26 ::DDS::DataReaderView_ptr
31 public ::DDS::TypeSupport_impl
34 virtual ::DDS::ReturnCode_t register_type(
35 ::DDS::DomainParticipant_ptr participant,
36 const char * type_name) THROW_ORB_EXCEPTIONS;
38 virtual char * get_type_name() THROW_ORB_EXCEPTIONS;
47 static const char *metaDescriptor[];
55 public ::DDS::DataWriter_impl
59 virtual ::DDS::InstanceHandle_t register_instance(
60 const GSDFPacket & instance_data) THROW_ORB_EXCEPTIONS;
62 virtual ::DDS::InstanceHandle_t register_instance_w_timestamp(
64 const ::DDS::Time_t & source_timestamp) THROW_ORB_EXCEPTIONS;
66 virtual ::DDS::ReturnCode_t unregister_instance(
68 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
70 virtual ::DDS::ReturnCode_t unregister_instance_w_timestamp(
72 ::DDS::InstanceHandle_t handle,
73 const ::DDS::Time_t & source_timestamp) THROW_ORB_EXCEPTIONS;
75 virtual ::DDS::ReturnCode_t write(
77 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
79 virtual ::DDS::ReturnCode_t write_w_timestamp(
81 ::DDS::InstanceHandle_t handle,
82 const ::DDS::Time_t & source_timestamp) THROW_ORB_EXCEPTIONS;
84 virtual ::DDS::ReturnCode_t dispose(
86 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
88 virtual ::DDS::ReturnCode_t dispose_w_timestamp(
90 ::DDS::InstanceHandle_t handle,
91 const ::DDS::Time_t & source_timestamp) THROW_ORB_EXCEPTIONS;
93 virtual ::DDS::ReturnCode_t writedispose(
95 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
97 virtual ::DDS::ReturnCode_t writedispose_w_timestamp(
99 ::DDS::InstanceHandle_t handle,
100 const ::DDS::Time_t & source_timestamp) THROW_ORB_EXCEPTIONS;
102 virtual ::DDS::ReturnCode_t get_key_value(
104 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
106 virtual ::DDS::InstanceHandle_t lookup_instance(
107 const GSDFPacket & instance_data) THROW_ORB_EXCEPTIONS;
111 gapi_dataWriter handle
122 public ::DDS::DataReader_impl
126 virtual ::DDS::ReturnCode_t read(
128 ::DDS::SampleInfoSeq & info_seq,
129 ::DDS::Long max_samples,
130 ::DDS::SampleStateMask sample_states,
131 ::DDS::ViewStateMask view_states,
132 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
134 virtual ::DDS::ReturnCode_t take(
136 ::DDS::SampleInfoSeq & info_seq,
137 ::DDS::Long max_samples,
138 ::DDS::SampleStateMask sample_states,
139 ::DDS::ViewStateMask view_states,
140 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
142 virtual ::DDS::ReturnCode_t read_w_condition(
144 ::DDS::SampleInfoSeq & info_seq,
145 ::DDS::Long max_samples,
146 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
148 virtual ::DDS::ReturnCode_t take_w_condition(
150 ::DDS::SampleInfoSeq & info_seq,
151 ::DDS::Long max_samples,
152 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
154 virtual ::DDS::ReturnCode_t read_next_sample(
156 ::DDS::SampleInfo & sample_info) THROW_ORB_EXCEPTIONS;
158 virtual ::DDS::ReturnCode_t take_next_sample(
160 ::DDS::SampleInfo & sample_info) THROW_ORB_EXCEPTIONS;
162 virtual ::DDS::ReturnCode_t read_instance(
164 ::DDS::SampleInfoSeq & info_seq,
165 ::DDS::Long max_samples,
166 ::DDS::InstanceHandle_t a_handle,
167 ::DDS::SampleStateMask sample_states,
168 ::DDS::ViewStateMask view_states,
169 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
171 virtual ::DDS::ReturnCode_t take_instance(
173 ::DDS::SampleInfoSeq & info_seq,
174 ::DDS::Long max_samples,
175 ::DDS::InstanceHandle_t a_handle,
176 ::DDS::SampleStateMask sample_states,
177 ::DDS::ViewStateMask view_states,
178 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
180 virtual ::DDS::ReturnCode_t read_next_instance(
182 ::DDS::SampleInfoSeq & info_seq,
183 ::DDS::Long max_samples,
184 ::DDS::InstanceHandle_t a_handle,
185 ::DDS::SampleStateMask sample_states,
186 ::DDS::ViewStateMask view_states,
187 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
189 virtual ::DDS::ReturnCode_t take_next_instance(
191 ::DDS::SampleInfoSeq & info_seq,
192 ::DDS::Long max_samples,
193 ::DDS::InstanceHandle_t a_handle,
194 ::DDS::SampleStateMask sample_states,
195 ::DDS::ViewStateMask view_states,
196 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
198 virtual ::DDS::ReturnCode_t read_next_instance_w_condition(
200 ::DDS::SampleInfoSeq & info_seq,
201 ::DDS::Long max_samples,
202 ::DDS::InstanceHandle_t a_handle,
203 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
205 virtual ::DDS::ReturnCode_t take_next_instance_w_condition(
207 ::DDS::SampleInfoSeq & info_seq,
208 ::DDS::Long max_samples,
209 ::DDS::InstanceHandle_t a_handle,
210 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
212 virtual ::DDS::ReturnCode_t return_loan(
214 ::DDS::SampleInfoSeq & info_seq) THROW_ORB_EXCEPTIONS;
216 virtual ::DDS::ReturnCode_t get_key_value(
218 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
220 virtual ::DDS::InstanceHandle_t lookup_instance(
221 const GSDFPacket & instance) THROW_ORB_EXCEPTIONS;
224 gapi_dataReader handle
233 static ::DDS::ReturnCode_t check_preconditions(
235 ::DDS::SampleInfoSeq & info_seq,
236 ::DDS::Long max_samples
241 public ::DDS::DataReaderView_impl
244 virtual ::DDS::ReturnCode_t read(
246 ::DDS::SampleInfoSeq & info_seq,
247 ::DDS::Long max_samples,
248 ::DDS::SampleStateMask sample_states,
249 ::DDS::ViewStateMask view_states,
250 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
252 virtual ::DDS::ReturnCode_t take(
254 ::DDS::SampleInfoSeq & info_seq,
255 ::DDS::Long max_samples,
256 ::DDS::SampleStateMask sample_states,
257 ::DDS::ViewStateMask view_states,
258 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
260 virtual ::DDS::ReturnCode_t read_w_condition(
262 ::DDS::SampleInfoSeq & info_seq,
263 ::DDS::Long max_samples,
264 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
266 virtual ::DDS::ReturnCode_t take_w_condition(
268 ::DDS::SampleInfoSeq & info_seq,
269 ::DDS::Long max_samples,
270 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
272 virtual ::DDS::ReturnCode_t read_next_sample(
274 ::DDS::SampleInfo & sample_info) THROW_ORB_EXCEPTIONS;
276 virtual ::DDS::ReturnCode_t take_next_sample(
278 ::DDS::SampleInfo & sample_info) THROW_ORB_EXCEPTIONS;
280 virtual ::DDS::ReturnCode_t read_instance(
282 ::DDS::SampleInfoSeq & info_seq,
283 ::DDS::Long max_samples,
284 ::DDS::InstanceHandle_t a_handle,
285 ::DDS::SampleStateMask sample_states,
286 ::DDS::ViewStateMask view_states,
287 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
289 virtual ::DDS::ReturnCode_t take_instance(
291 ::DDS::SampleInfoSeq & info_seq,
292 ::DDS::Long max_samples,
293 ::DDS::InstanceHandle_t a_handle,
294 ::DDS::SampleStateMask sample_states,
295 ::DDS::ViewStateMask view_states,
296 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
298 virtual ::DDS::ReturnCode_t read_next_instance(
300 ::DDS::SampleInfoSeq & info_seq,
301 ::DDS::Long max_samples,
302 ::DDS::InstanceHandle_t a_handle,
303 ::DDS::SampleStateMask sample_states,
304 ::DDS::ViewStateMask view_states,
305 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
307 virtual ::DDS::ReturnCode_t take_next_instance(
309 ::DDS::SampleInfoSeq & info_seq,
310 ::DDS::Long max_samples,
311 ::DDS::InstanceHandle_t a_handle,
312 ::DDS::SampleStateMask sample_states,
313 ::DDS::ViewStateMask view_states,
314 ::DDS::InstanceStateMask instance_states) THROW_ORB_EXCEPTIONS;
316 virtual ::DDS::ReturnCode_t read_next_instance_w_condition(
318 ::DDS::SampleInfoSeq & info_seq,
319 ::DDS::Long max_samples,
320 ::DDS::InstanceHandle_t a_handle,
321 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
323 virtual ::DDS::ReturnCode_t take_next_instance_w_condition(
325 ::DDS::SampleInfoSeq & info_seq,
326 ::DDS::Long max_samples,
327 ::DDS::InstanceHandle_t a_handle,
328 ::DDS::ReadCondition_ptr a_condition) THROW_ORB_EXCEPTIONS;
330 virtual ::DDS::ReturnCode_t return_loan(
332 ::DDS::SampleInfoSeq & info_seq) THROW_ORB_EXCEPTIONS;
334 virtual ::DDS::ReturnCode_t get_key_value(
336 ::DDS::InstanceHandle_t handle) THROW_ORB_EXCEPTIONS;
338 virtual ::DDS::InstanceHandle_t lookup_instance(
339 const GSDFPacket & instance) THROW_ORB_EXCEPTIONS;
342 gapi_dataReader handle
GSDFPacketTypeSupportInterface_ptr GSDFPacketTypeSupport_ptr
virtual ~GSDFPacketTypeSupportFactory()
static const ::DDS::ULong metaDescriptorArrLength
GSDFPacketTypeSupportFactory()
DDS_DCPSInterface_var< GSDFPacketTypeSupportInterface > GSDFPacketTypeSupportInterface_var
::DDS::DataWriter_ptr create_datawriter(gapi_dataWriter handle)
::DDS::DataReader_ptr create_datareader(gapi_dataReader handle)
DDS_DCPSUVLSeq< GSDFPacket, struct GSDFPacketSeq_uniq_ > GSDFPacketSeq
::DDS::DataReaderView_ptr create_view(gapi_dataReaderView handle)
GSDFPacketTypeSupportInterface_var GSDFPacketTypeSupport_var