11 #ifndef RTI_ROUTING_ADAPTER_STREAM_WRITER_HPP_ 12 #define RTI_ROUTING_ADAPTER_STREAM_WRITER_HPP_ 16 #include <rti/routing/UpdatableEntity.hpp> 17 #include <rti/routing/detail/ForwarderUtils.hpp> 19 namespace rti {
namespace routing {
namespace adapter {
40 typedef void* SamplePtr;
41 typedef void* InfoPtr;
65 const std::vector<SamplePtr>& sample_seq,
66 const std::vector<InfoPtr>& info_seq) = 0;
87 template <
typename Data,
typename Info>
96 typedef DataRep* DataRepPtr;
101 typedef InfoRep* InfoRepPtr;
108 const std::vector<SamplePtr>& sample_seq,
109 const std::vector<InfoPtr>& info_seq) RTI_FINAL
111 RTI_ROUTING_SAMPLE_VECTOR_COPY_PTRS(sample_seq_, sample_seq);
112 RTI_ROUTING_SAMPLE_VECTOR_COPY_PTRS(info_seq_, info_seq);
114 return write(sample_seq_, info_seq_);
123 const std::vector<Data*>& sample_seq,
124 const std::vector<Info*>& info_seq) = 0;
134 std::vector<Data*> sample_seq_;
135 std::vector<Info*> info_seq_;
151 #endif // RTI_ROUTING_ADAPTER_STREAM_WRITER_HPP_ virtual ~StreamWriter()
Virtual destructor.
Definition: StreamWriter.hpp:71
Data DataRep
The data type.
Definition: StreamWriter.hpp:95
Info InfoRep
The info type.
Definition: StreamWriter.hpp:100
int write(const std::vector< SamplePtr > &sample_seq, const std::vector< InfoPtr > &info_seq) RTI_FINAL
Performs the conversion between the vector of data and info pointers to strongly-type pointers...
Definition: StreamWriter.hpp:107
Defines a common interface for all the pluggable entities that can be updated at runtime.
Definition: UpdatableEntity.hpp:34
A wrapper implementation of a StreamWriter that provides a strongly-typed interface through template ...
Definition: StreamWriter.hpp:88
virtual int write(const std::vector< SamplePtr > &sample_seq, const std::vector< InfoPtr > &info_seq)=0
Writes a collection of data samples to the output stream associated with this StreamWriter.
Definition: AdapterPlugin.hpp:25
TStreamWriter< dds::core::xtypes::DynamicData, dds::sub::SampleInfo > DynamicDataStreamWriter
Convenient definition of typed StreamWriter that requires dds::core::xtypes::DynamicData for data sam...
Definition: StreamWriter.hpp:147
Provides a way to write samples of a specific type in a data domain.
Definition: StreamWriter.hpp:36
virtual ~TStreamWriter()
Virtual destructor.
Definition: StreamWriter.hpp:129