RTI Routing Service  Version 6.0.0
 All Data Structures Files Functions Typedefs Enumerations Enumerator Groups Pages
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.
 
typedef Info InfoRep
 The info type.
 

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

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

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

The data type.

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

The info type.

Constructor & Destructor Documentation

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

Virtual destructor.

Member Function Documentation

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.

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

RTI Routing Service Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc