Class BaseWriterInterface

Inheritance Relationships

Derived Type

Class Documentation

class BaseWriterInterface

Subclassed by rosbag2_cpp::writers::SequentialWriter

Public Functions

inline virtual ~BaseWriterInterface()
virtual void open(const rosbag2_storage::StorageOptions &storage_options, const ConverterOptions &converter_options) = 0
virtual void close() = 0
virtual void create_topic(const rosbag2_storage::TopicMetadata &topic_with_type) = 0
virtual void remove_topic(const rosbag2_storage::TopicMetadata &topic_with_type) = 0
virtual void write(std::shared_ptr<rosbag2_storage::SerializedBagMessage> message) = 0
virtual bool take_snapshot() = 0

Triggers a snapshot for writers that support it.

Returns:

true if snapshot is successful, false if snapshot fails or is not supported

virtual void add_event_callbacks(const bag_events::WriterEventCallbacks &callbacks) = 0