Struct SourceAdaptor¶
Defined in File adaptor.h
Inheritance Relationships¶
Derived Type¶
public spdl::core::BytesAdaptor(Struct BytesAdaptor)
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_cfg – Demuxer configuration.
name – Optional custom name for the source (used in error messages).
- Returns:
DataInterface for accessing the resource.
-
virtual ~SourceAdaptor() = default¶