RTI Routing Service  Version 6.0.0
 All Data Structures Files Functions Typedefs Enumerations Enumerator Groups Pages
rti::routing::processor::TypedOutput< Data, Info > Class Template Reference

Representation of an Output whose data representation is DataRep, whose info representation is InfoRep. More...

#include <Output.hpp>

Public Member Functions

const rti::routing::StreamInfostream_info () const
 Returns the StreamInfo associated with this object.
 
const std::string & name () const
 Returns the name of this output.
 
void write (const Data &sample, const Info &info)
 Writes the specified data and info sample in this output.
 
Data create_data ()
 Creates a new data sample that can be used to write in this output.
 

Friends

class rti::routing::processor::Route
 

Detailed Description

template<typename Data, typename Info>
class rti::routing::processor::TypedOutput< Data, Info >

Representation of an Output whose data representation is DataRep, whose info representation is InfoRep.

Member Function Documentation

template<typename Data , typename Info >
const rti::routing::StreamInfo & TypedOutput< Data, Info >::stream_info ( ) const

Returns the StreamInfo associated with this object.

The associated StreamInfo represents an equivalent object to the one used to create the underlying rti::routing::adapter::StreamWriter.

template<typename Data , typename Info >
const std::string & TypedOutput< Data, Info >::name ( ) const

Returns the name of this output.

The name is given by the name of the corresponding XML configuration tag.

template<typename Data , typename Info >
void TypedOutput< Data, Info >::write ( const Data &  sample,
const Info &  info 
)

Writes the specified data and info sample in this output.

This operation will call rti::routing::adapter::StreamWriter::write on the underlying rti::routing::adapter::StreamWriter.

The provided sample is interpreted to contain data represented as Data and the info as Info.

See Also
rti::routing::adapter::StreamWriter::write
template<typename Data , typename Info >
Data TypedOutput< Data, Info >::create_data ( )

Creates a new data sample that can be used to write in this output.

The data constructor called in this operation depends on the data representation kind of the TypeInfo associated with this output. If the type representation is a dynamic type, then it will assume the following constructor:

Data(const dds::core::xtypes::DynamicType&)

and will use the type code object downcasted from the value returned by TypeInfo::type_representation.

Otherwise:

Data()
Returns
A new data sample

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