RTI Recording Service Version 7.1.0
rti::recording::storage::TStorageStreamWriter< Data, Info > Class Template Referenceabstract

A templatized wrapping implementation of StorageStreamWriter, providing a strongly-typed interface regarding data and info representations. More...

#include <StorageStreamWriter.hpp>

Inheritance diagram for rti::recording::storage::TStorageStreamWriter< Data, Info >:
rti::recording::storage::StorageStreamWriter

Public Types

typedef Data DataRep
 The data type. More...
 
typedef Info InfoRep
 The info type. More...
 

Public Member Functions

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. More...
 
virtual void store (const std::vector< Data * > &sample_seq, const std::vector< Info * > &info_seq)=0
 Interface redefinition. More...
 
virtual ~TStorageStreamWriter ()
 Virtual destructor. More...
 
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. More...
 
- Public Member Functions inherited from rti::recording::storage::StorageStreamWriter
virtual ~StorageStreamWriter ()
 Virtual destructor. More...
 
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. More...
 

Detailed Description

template<typename Data, typename Info>
class rti::recording::storage::TStorageStreamWriter< Data, Info >

A templatized wrapping implementation of StorageStreamWriter, providing a strongly-typed interface regarding data and info representations.

class rti::recording::storage::TStorageStreamWriter

You can implement this interface as a convenience to manipulate the data and info representation without dealing with opaque pointers.

Member Typedef Documentation

◆ DataRep

template<typename Data , typename Info >
typedef Data rti::recording::storage::TStorageStreamWriter< Data, Info >::DataRep

The data type.

◆ InfoRep

template<typename Data , typename Info >
typedef Info rti::recording::storage::TStorageStreamWriter< Data, Info >::InfoRep

The info type.

Constructor & Destructor Documentation

◆ ~TStorageStreamWriter()

template<typename Data , typename Info >
virtual rti::recording::storage::TStorageStreamWriter< Data, Info >::~TStorageStreamWriter ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ store() [1/3]

template<typename Data , typename Info >
void rti::recording::storage::TStorageStreamWriter< Data, Info >::store ( const std::vector< SamplePtr > &  sample_seq,
const std::vector< InfoPtr > &  info_seq 
)
inlinevirtual

Performs the conversion between the vector of data and info pointers to strongly-typed pointers.

Implements rti::recording::storage::StorageStreamWriter.

References rti::recording::storage::TStorageStreamWriter< Data, Info >::store().

Referenced by rti::recording::storage::TStorageStreamWriter< Data, Info >::store().

◆ store() [2/3]

template<typename Data , typename Info >
virtual void rti::recording::storage::TStorageStreamWriter< Data, Info >::store ( const std::vector< Data * > &  sample_seq,
const std::vector< Info * > &  info_seq 
)
pure virtual

Interface redefinition.

See also
StorageStreamWriter::store

◆ store() [3/3]

template<typename Data , typename Info >
virtual void rti::recording::storage::StorageStreamWriter::store ( const std::vector< SamplePtr > &  sample_seq,
const std::vector< InfoPtr > &  info_seq 
)
virtual

Implement this method to store data in the storage of your choice.

Parameters
sample_seqVector of SamplePtr objects containing the data to store. A SamplePtr is generally a DDS_DynamicData *, unless this is a discovery stream, in which case this is the builtin discovery type. Check the stream name to determine if this is a discovery stream.
info_seqVector of InfoType objects. An InfoType is a DDS_SampleInfo * cast to a void *.

Implements rti::recording::storage::StorageStreamWriter.