Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::parser::NoOpResourceLoader Class Reference

An no-op resource loader. More...

Inheritance diagram for donner::svg::parser::NoOpResourceLoader:
[legend]
Collaboration diagram for donner::svg::parser::NoOpResourceLoader:
[legend]

Public Member Functions

std::variant< std::vector< uint8_t >, ResourceLoaderErrorfetchExternalResource (std::string_view url) override
 Fetch external resource from a given URL.
 
- Public Member Functions inherited from donner::svg::ResourceLoaderInterface
 ResourceLoaderInterface ()=default
 Default constructor.
 
 ResourceLoaderInterface (const ResourceLoaderInterface &)=delete
 
ResourceLoaderInterfaceoperator= (const ResourceLoaderInterface &)=delete
 
 ResourceLoaderInterface (ResourceLoaderInterface &&)=delete
 
ResourceLoaderInterfaceoperator= (ResourceLoaderInterface &&)=delete
 
virtual ~ResourceLoaderInterface ()=default
 Destructor.
 

Detailed Description

An no-op resource loader.

Member Function Documentation

◆ fetchExternalResource()

std::variant< std::vector< uint8_t >, ResourceLoaderError > donner::svg::parser::NoOpResourceLoader::fetchExternalResource ( std::string_view url)
inlineoverridevirtual

Fetch external resource from a given URL.

Parameters
urlURL of the external resource.
Returns
A vector containing the fetched data, or std::nullopt if the resource could not be loaded.

Implements donner::svg::ResourceLoaderInterface.


The documentation for this class was generated from the following file: