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

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

#include <StorageStreamReader.hpp>

Inheritance diagram for rti::recording::storage::TStorageStreamReader< Data, Info >:
rti::recording::storage::StorageStreamReader

Public Types

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

Public Member Functions

void read (std::vector< SamplePtr > &sample_seq, std::vector< InfoPtr > &info_seq, const SelectorState &selector) RTI_FINAL
 Performs the conversion between the vector of data and info pointers to strongly-typed pointers. More...
 
void return_loan (std::vector< SamplePtr > &sample_seq, std::vector< InfoPtr > &info_seq) RTI_FINAL
 Performs the conversion between the vector of data and info pointers to strongly-typed pointers. More...
 
- Public Member Functions inherited from rti::recording::storage::StorageStreamReader
virtual ~StorageStreamReader ()
 Virtual destructor. More...
 
virtual bool finished ()=0
 Method for querying whether there are no more samples for this stream. More...
 
virtual void reset ()=0
 Method used by Replay Service when looping, to start over. After this method is called, the stream reader should be ready to start reading data from the beginning of the stream, again. More...
 

Detailed Description

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

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

class rti::recording::storage::TStorageStreamReader 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::TStorageStreamReader< Data, Info >::DataRep

The data type.

◆ InfoRep

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

The info type.

Member Function Documentation

◆ read()

template<typename Data , typename Info >
void rti::recording::storage::TStorageStreamReader< Data, Info >::read ( std::vector< SamplePtr > &  sample_seq,
std::vector< InfoPtr > &  info_seq,
const SelectorState selector 
)
inlinevirtual

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

Implements rti::recording::storage::StorageStreamReader.

References rti::recording::storage::StorageStreamReader::read().

◆ return_loan()

template<typename Data , typename Info >
void rti::recording::storage::TStorageStreamReader< Data, Info >::return_loan ( std::vector< SamplePtr > &  sample_seq,
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::StorageStreamReader.

References rti::recording::storage::StorageStreamReader::read(), and rti::recording::storage::StorageStreamReader::return_loan().