25 #ifndef dds_c_tdatareader_gen_h
26 #define dds_c_tdatareader_gen_h
28 #ifndef dds_c_common_h
31 #ifndef dds_c_infrastructure_h
34 #ifndef dds_c_subscription_h
41 #if defined(TDataReader) && defined(TDataSeq ) && defined(TData)
43 #define concatenate(A, B) A ## B
45 #define TDataReader_narrow_c(TDataReader) concatenate(TDataReader, _narrow)
46 #define TDataReader_narrow TDataReader_narrow_c(TDataReader)
48 #define TDataReader_as_datareader_c(TDataReader) concatenate(TDataReader, _as_datareader)
49 #define TDataReader_as_datareader TDataReader_as_datareader_c(TDataReader)
51 #define TDataReader_read_c(TDataReader) concatenate(TDataReader, _read)
52 #define TDataReader_read TDataReader_read_c(TDataReader)
54 #define TDataReader_take_c(TDataReader) concatenate(TDataReader, _take)
55 #define TDataReader_take TDataReader_take_c(TDataReader)
57 #define TDataReader_read_next_sample_c(TDataReader) concatenate(TDataReader, _read_next_sample)
58 #define TDataReader_read_next_sample TDataReader_read_next_sample_c(TDataReader)
60 #define TDataReader_take_next_sample_c(TDataReader) concatenate(TDataReader, _take_next_sample)
61 #define TDataReader_take_next_sample TDataReader_take_next_sample_c(TDataReader)
63 #define TDataReader_read_instance_c(TDataReader) concatenate(TDataReader, _read_instance)
64 #define TDataReader_read_instance TDataReader_read_instance_c(TDataReader)
66 #define TDataReader_take_instance_c(TDataReader) concatenate(TDataReader, _take_instance)
67 #define TDataReader_take_instance TDataReader_take_instance_c(TDataReader)
69 #define TDataReader_return_loan_c(TDataReader) concatenate(TDataReader, _return_loan)
70 #define TDataReader_return_loan TDataReader_return_loan_c(TDataReader)
72 #define TDataReader_lookup_instance_c(TDataReader) concatenate(TDataReader, _lookup_instance)
73 #define TDataReader_lookup_instance TDataReader_lookup_instance_c(TDataReader)
82 return (TDataReader *)reader;
86 TDataReader_as_datareader(TDataReader* reader)
92 TDataReader_read(TDataReader*
self,
93 struct TDataSeq * received_data,
101 (
struct DDS_UntypedSampleSeq *)received_data,
102 info_seq, max_samples,
103 sample_states, view_states, instance_states);
107 TDataReader_take(TDataReader*
self,
108 struct TDataSeq * received_data,
116 (
struct DDS_UntypedSampleSeq *)received_data,
117 info_seq, max_samples,
118 sample_states, view_states, instance_states);
122 TDataReader_read_next_sample(TDataReader*
self,
123 TData* received_data,
127 received_data, sample_info);
131 TDataReader_take_next_sample(TDataReader*
self,
132 TData* received_data,
136 received_data, sample_info);
140 TDataReader_read_instance(TDataReader*
self,
141 struct TDataSeq * received_data,
150 (
struct DDS_UntypedSampleSeq *)received_data,
151 info_seq, max_samples, a_handle,
152 sample_states, view_states, instance_states);
156 TDataReader_take_instance(TDataReader*
self,
157 struct TDataSeq * received_data,
166 (
struct DDS_UntypedSampleSeq *)received_data,
167 info_seq, max_samples, a_handle,
168 sample_states, view_states, instance_states);
172 TDataReader_return_loan(TDataReader*
self,
173 struct TDataSeq * received_data,
177 (
struct DDS_UntypedSampleSeq *)received_data,
182 TDataReader_lookup_instance(TDataReader*
self,
183 const TData *key_holder)
186 (
const void *)key_holder);
191 #undef TDataReader_narrow_c
192 #undef TDataReader_narrow
194 #undef TDataReader_as_datareader_c
195 #undef TDataReader_as_datareader
197 #undef TDataReader_read_c
198 #undef TDataReader_read
200 #undef TDataReader_take_c
201 #undef TDataReader_take
203 #undef TDataReader_read_next_sample_c
204 #undef TDataReader_read_next_sample
206 #undef TDataReader_take_next_sample_c
207 #undef TDataReader_take_next_sample
209 #undef TDataReader_read_instance_c
210 #undef TDataReader_read_instance
212 #undef TDataReader_take_instance_c
213 #undef TDataReader_take_instance
215 #undef TDataReader_return_loan_c
216 #undef TDataReader_return_loan
218 #undef TDataReader_lookup_instance_c
219 #undef TDataReader_lookup_instance
222 #error "Incorrect use of dds_c_tdatareader_gen.h: TDataReader, TData, and TDataSeq must be defined"
225 #undef dds_c_tdatareader_gen_h