RTI Routing Service Version 7.1.0
rti::routing::adapter::TStreamWriter< Data, Info > Class Template Referenceabstract

A wrapper implementation of a StreamWriter that provides a strongly-typed interface through template parameters for data and info representation. More...

#include <StreamWriter.hpp>

Inheritance diagram for rti::routing::adapter::TStreamWriter< Data, Info >:
rti::routing::adapter::StreamWriter rti::routing::UpdatableEntity

Public Types

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

Public Member Functions

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. More...
 
virtual int write (const std::vector< Data * > &sample_seq, const std::vector< Info * > &info_seq)=0
 Interface redefinition. More...
 
virtual ~TStreamWriter ()
 Virtual destructor. More...
 
- Public Member Functions inherited from rti::routing::adapter::StreamWriter
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. More...
 
virtual ~StreamWriter ()
 Virtual destructor. More...
 
- Public Member Functions inherited from rti::routing::UpdatableEntity
virtual void update (const std::map< std::string, std::string > &properties)
 Updates a pluggable entity. More...
 
virtual ~UpdatableEntity ()
 Virtual destructor. More...
 

Detailed Description

template<typename Data, typename Info>
class rti::routing::adapter::TStreamWriter< Data, Info >

A wrapper implementation of a StreamWriter that provides a strongly-typed interface through template parameters for data and info representation.

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::routing::adapter::TStreamWriter< Data, Info >::DataRep

The data type.

◆ InfoRep

template<typename Data , typename Info >
typedef Info rti::routing::adapter::TStreamWriter< Data, Info >::InfoRep

The info type.

Constructor & Destructor Documentation

◆ ~TStreamWriter()

template<typename Data , typename Info >
virtual rti::routing::adapter::TStreamWriter< Data, Info >::~TStreamWriter ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ write() [1/2]

template<typename Data , typename Info >
int rti::routing::adapter::TStreamWriter< Data, Info >::write ( 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-type pointers.

Implements rti::routing::adapter::StreamWriter.

References rti::routing::adapter::TStreamWriter< Data, Info >::write().

Referenced by rti::routing::adapter::TStreamWriter< Data, Info >::write().

◆ write() [2/2]

template<typename Data , typename Info >
virtual int rti::routing::adapter::TStreamWriter< Data, Info >::write ( const std::vector< Data * > &  sample_seq,
const std::vector< Info * > &  info_seq 
)
pure virtual

Interface redefinition.

See also
StreamWriter::write