23 #ifndef dds_c_tdatawriter_gen_h
24 #define dds_c_tdatawriter_gen_h
26 #ifndef dds_c_common_h
29 #ifndef dds_c_infrastructure_h
32 #ifndef dds_c_publication_h
40 #if defined(TDataWriter) && defined(TData)
42 #define concatenate(A, B) A ## B
44 #define TDataWriter_narrow_c(TDataWriter) concatenate(TDataWriter, _narrow)
45 #define TDataWriter_narrow TDataWriter_narrow_c(TDataWriter)
47 #define TDataWriter_as_datawriter_c(TDataWriter) concatenate(TDataWriter, _as_datawriter)
48 #define TDataWriter_as_datawriter TDataWriter_as_datawriter_c(TDataWriter)
50 #define TDataWriter_register_instance_c(TDataWriter) concatenate(TDataWriter, _register_instance)
51 #define TDataWriter_register_instance TDataWriter_register_instance_c(TDataWriter)
53 #define TDataWriter_register_instance_w_timestamp_c(TDataWriter) concatenate(TDataWriter, _register_instance_w_timestamp)
54 #define TDataWriter_register_instance_w_timestamp TDataWriter_register_instance_w_timestamp_c(TDataWriter)
56 #define TDataWriter_unregister_instance_c(TDataWriter) concatenate(TDataWriter, _unregister_instance)
57 #define TDataWriter_unregister_instance TDataWriter_unregister_instance_c(TDataWriter)
59 #define TDataWriter_unregister_instance_w_timestamp_c(TDataWriter) concatenate(TDataWriter, _unregister_instance_w_timestamp)
60 #define TDataWriter_unregister_instance_w_timestamp TDataWriter_unregister_instance_w_timestamp_c(TDataWriter)
62 #define TDataWriter_write_c(TDataWriter) concatenate(TDataWriter, _write)
63 #define TDataWriter_write TDataWriter_write_c(TDataWriter)
65 #define TDataWriter_write_w_timestamp_c(TDataWriter) concatenate(TDataWriter, _write_w_timestamp)
66 #define TDataWriter_write_w_timestamp TDataWriter_write_w_timestamp_c(TDataWriter)
68 #define TDataWriter_write_w_params_c(TDataWriter) concatenate(TDataWriter, _write_w_params)
69 #define TDataWriter_write_w_params TDataWriter_write_w_params_c(TDataWriter)
71 #define TDataWriter_dispose_c(TDataWriter) concatenate(TDataWriter, _dispose)
72 #define TDataWriter_dispose TDataWriter_dispose_c(TDataWriter)
74 #define TDataWriter_dispose_w_timestamp_c(TDataWriter) concatenate(TDataWriter, _dispose_w_timestamp)
75 #define TDataWriter_dispose_w_timestamp TDataWriter_dispose_w_timestamp_c(TDataWriter)
86 return (TDataWriter *)writer;
90 TDataWriter_as_datawriter(TDataWriter* writer)
95 #ifdef INCLUDE_API_INSTANCE
97 TDataWriter_register_instance(TDataWriter*
self,
98 const TData* instance_data)
105 #ifdef INCLUDE_API_INSTANCE
107 TDataWriter_register_instance_w_timestamp(TDataWriter*
self,
108 const TData* instance_data,
116 #ifdef INCLUDE_API_INSTANCE
118 TDataWriter_unregister_instance(TDataWriter*
self,
119 const TData* instance_data,
127 #ifdef INCLUDE_API_INSTANCE
129 TDataWriter_unregister_instance_w_timestamp(TDataWriter*
self,
130 const TData* instance_data,
139 #ifdef INCLUDE_API_INSTANCE
141 TDataWriter_dispose(TDataWriter*
self,
142 const TData* instance_data,
150 #ifdef INCLUDE_API_INSTANCE
152 TDataWriter_dispose_w_timestamp(TDataWriter*
self,
153 const TData* instance_data,
159 instance_data, instance_handle, source_timestamp);
164 TDataWriter_write(TDataWriter*
self,
165 const TData* instance_data,
172 TDataWriter_write_w_timestamp(TDataWriter*
self,
173 const TData* instance_data,
182 TDataWriter_write_w_params(TDataWriter*
self,
183 const TData* instance_data,
192 #undef TDataWriter_narrow_c
193 #undef TDataWriter_narrow
195 #undef TDataWriter_as_datawriter_c
196 #undef TDataWriter_as_datawriter
198 #undef TDataWriter_register_instance_c
199 #undef TDataWriter_register_instance
201 #undef TDataWriter_register_instance_w_timestamp_c
202 #undef TDataWriter_register_instance_w_timestamp
204 #undef TDataWriter_unregister_instance_c
205 #undef TDataWriter_unregister_instance
207 #undef TDataWriter_unregister_instance_w_timestamp_c
208 #undef TDataWriter_unregister_instance_w_timestamp
210 #undef TDataWriter_write_c
211 #undef TDataWriter_write
213 #undef TDataWriter_write_w_timestamp_c
214 #undef TDataWriter_write_w_timestamp
216 #undef TDataWriter_write_w_params_c
217 #undef TDataWriter_write_w_params
219 #undef TDataWriter_dispose_c
220 #undef TDataWriter_dispose
222 #undef TDataWriter_dispose_w_timestamp_c
223 #undef TDataWriter_dispose_w_timestamp
226 #error "Incorrect use of dds_cpp_tdatawriter_gen.hxx: TDataWriter, and TData must be defined"
229 #undef dds_c_tdatawriter_gen_h