RTI Recording Service  Version 6.0.1
 All Data Structures Namespaces Files Functions Typedefs Enumerations Enumerator Groups
rti::recording::storage::StorageWriter Class Referenceabstract

Storage writer. More...

#include <StorageWriter.hpp>

Public Member Functions

 StorageWriter (const rti::routing::PropertySet &properties)
 Constructor.
 
virtual ~StorageWriter ()
 Virtual destructor.
 
virtual StorageStreamWritercreate_stream_writer (const rti::routing::StreamInfo &stream_info, const rti::routing::PropertySet &properties)=0
 RTI Recording Service calls this to create a user-data stream writer. The built-in DDS discovery topics can be recorded, however, RTI Recording Service will use the create_discovery_stream_writer() call to obtain a stream writer for those types.
 
virtual ParticipantStorageWritercreate_participant_writer ()
 RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSParticipant. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSParticipant data will be recorded.
 
virtual PublicationStorageWritercreate_publication_writer ()
 RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSPublication. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSPublication data will be recorded.
 
virtual SubscriptionStorageWritercreate_subscription_writer ()
 RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSSubscription. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSSubscription data will be recorded.
 
virtual void delete_stream_writer (StorageStreamWriter *writer)=0
 RTI Recording Service calls this to delete a stream writer. This method should be able to work with any stream, user-data or discovery.
 

Detailed Description

Storage writer.

class rti::recording::storage::StorageWriter This class is responsible for creating StorageStreamWriters when notified that a new stream has been discovered. A stream is defined by a Topic/type combination

Constructor & Destructor Documentation

rti::recording::storage::StorageWriter::StorageWriter ( const rti::routing::PropertySet &  properties)
inline

Constructor.

Creates a StorageWriter object.

Parameters
propertiesRouting Service PropertySet. Contains name/value pairs that can be passed to the plugin in the XML, using the following snippet:
<recording_service name="ExampleRecorder">
    <storage>
        <plugin plugin_name="StorageLibrary::ExamplePlugin">
            <!-- Storage properties. These are passed to the plugin in the
            plugin_library -->
            <property>
                <value>
                    <element>
                        <name>example.filename</name>
                        <value>PluggableStorage.dat</value>
                    </element>
                </value>
            </property>
        </plugin>
    </storage>
</recording_service>
virtual rti::recording::storage::StorageWriter::~StorageWriter ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

virtual StorageStreamWriter* rti::recording::storage::StorageWriter::create_stream_writer ( const rti::routing::StreamInfo &  stream_info,
const rti::routing::PropertySet &  properties 
)
pure virtual

RTI Recording Service calls this to create a user-data stream writer. The built-in DDS discovery topics can be recorded, however, RTI Recording Service will use the create_discovery_stream_writer() call to obtain a stream writer for those types.

Parameters
stream_infoInformation about the stream to be created, such as stream name (DDS topic name).
propertiesA collection of value-pair properties. They include some built-in values, like: 1) name='rti.recording_service.domain_id' value=the DDS domain ID the stream was found in (32-bit integer as text)
See Also
create_discovery_stream_writer
virtual ParticipantStorageWriter* rti::recording::storage::StorageWriter::create_participant_writer ( )
inlinevirtual

RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSParticipant. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSParticipant data will be recorded.

See Also
ParticipantStorageWriter
virtual PublicationStorageWriter* rti::recording::storage::StorageWriter::create_publication_writer ( )
inlinevirtual

RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSPublication. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSPublication data will be recorded.

See Also
PublicationStorageWriter
virtual SubscriptionStorageWriter* rti::recording::storage::StorageWriter::create_subscription_writer ( )
inlinevirtual

RTI Recording Service calls this to create a stream writer for the DDS built-in topic DCPSSubscription. In order for the stream writer to be created, this function has to be implemented. Otherwise, no DCPSSubscription data will be recorded.

See Also
SubscriptionStorageWriter
virtual void rti::recording::storage::StorageWriter::delete_stream_writer ( StorageStreamWriter writer)
pure virtual

RTI Recording Service calls this to delete a stream writer. This method should be able to work with any stream, user-data or discovery.

Parameters
writerStream Writer to be deleted.

RTI Recording Service Version 6.0.1 Copyright © Sun Nov 17 2019 Real-Time Innovations, Inc