10 #ifndef RTI_RECORDING_STORAGE_STORAGESTREAMWRITER_HPP_ 11 #define RTI_RECORDING_STORAGE_STORAGESTREAMWRITER_HPP_ 15 #include "dds/dds.hpp" 17 #include "rti/routing/detail/ForwarderUtils.hpp" 19 namespace rti {
namespace recording {
namespace storage {
31 typedef void* SamplePtr;
32 typedef void* InfoPtr;
51 const std::vector<SamplePtr>& sample_seq,
52 const std::vector<InfoPtr>& info_seq) = 0;
64 template <
typename Data,
typename Info>
84 const std::vector<SamplePtr>& sample_seq,
85 const std::vector<InfoPtr>& info_seq)
87 RTI_ROUTING_SAMPLE_VECTOR_COPY_PTRS(sample_seq_, sample_seq);
88 RTI_ROUTING_SAMPLE_VECTOR_COPY_PTRS(info_seq_, info_seq);
90 store(sample_seq_, info_seq_);
99 const std::vector<Data *>& sample_seq,
100 const std::vector<Info *>& info_seq) = 0;
110 std::vector<Data *> sample_seq_;
111 std::vector<Info *> info_seq_;
122 dds::core::xtypes::DynamicData,
TStorageStreamWriter< dds::core::xtypes::DynamicData, dds::sub::SampleInfo > DynamicDataStorageStreamWriter
Convenience definition of typed StorageStreamWriter that requires dds::core::xtypes::DynamicData for ...
Definition: StorageStreamWriter.hpp:123
Info InfoRep
The info type.
Definition: StorageStreamWriter.hpp:75
Data DataRep
The data type.
Definition: StorageStreamWriter.hpp:71
virtual ~TStorageStreamWriter()
Virtual destructor.
Definition: StorageStreamWriter.hpp:105
virtual void store(const std::vector< SamplePtr > &sample_seq, const std::vector< InfoPtr > &info_seq)=0
Implement this method to store data in the storage of your choice.
void store(const std::vector< SamplePtr > &sample_seq, const std::vector< InfoPtr > &info_seq)
Performs the conversion between the vector of data and info pointers to strongly-typed pointers...
Definition: StorageStreamWriter.hpp:83
Storage stream writer.
Definition: StorageStreamWriter.hpp:28
A templatized wrapping implementation of StorageStreamWriter, providing a strongly-typed interface re...
Definition: StorageStreamWriter.hpp:65
The RTI namespace.
Definition: RecordingServiceImpl.hpp:22
virtual ~StorageStreamWriter()
Virtual destructor.
Definition: StorageStreamWriter.hpp:37