Class CompressionFactory
Defined in File compression_factory.hpp
Class Documentation
-
class CompressionFactory
Public Functions
-
CompressionFactory()
-
virtual ~CompressionFactory()
-
virtual std::shared_ptr<rosbag2_compression::BaseCompressorInterface> create_compressor(const std::string &compression_format)
Create a compressor based on the specified compression format.
- Parameters:
compression_format – The compression format as a string.
- Throws:
invalid_argument – If the compression format does not exist.
- Returns:
A shared pointer to the newly created compressor.
-
virtual std::shared_ptr<rosbag2_compression::BaseDecompressorInterface> create_decompressor(const std::string &compression_format)
Create a decompressor based on the specified compression format.
- Parameters:
compression_format – The compression format as a string.
- Throws:
invalid_argument – If the compression format does not exist.
- Returns:
A shared pointer to the newly created decompressor.
-
virtual std::vector<std::string> get_declared_compressor_plugins() const
Determine which compression plugins are available.
- Returns:
A vector of all available compression plugins.
-
CompressionFactory()