Struct SourceAdaptor

Inheritance Relationships

Derived Type

Struct Documentation

struct SourceAdaptor

Adaptor for custom data sources.

SourceAdaptor optionally modifies the input resource indicator and creates a DataInterface to access the actual data source.

Subclassed by spdl::core::BytesAdaptor

Public Functions

virtual ~SourceAdaptor() = default

Virtual destructor.

virtual DataInterfacePtr get_interface(std::string_view url, const DemuxConfig &dmx_cfg, const std::optional<std::string> &name = std::nullopt) const

Create a data interface for the given URL.

Parameters:
  • url – Resource URL or identifier.

  • dmx_cfgDemuxer configuration.

  • name – Optional custom name for the source (used in error messages).

Returns:

DataInterface for accessing the resource.