AUI Framework
develop
Cross-platform base for C++ UI apps
|
Uniform Resource Locator implementation. More...
#include <AUI/Url/AUrl.h>
Public Types | |
using | Resolver = std::function<_unique<IInputStream>(const AUrl&)> |
Public Member Functions | |
AUrl (AString full) | |
AUrl (const char *full) | |
AUrl (AString schema, AString path) | |
_unique< IInputStream > | open () const |
const AString & | path () const noexcept |
const AString & | schema () const noexcept |
AString | full () const |
bool | operator< (const AUrl &u) const |
Static Public Member Functions | |
static AUrl | file (const AString &file) |
static void | registerResolver (const AString &protocol, Resolver resolver) |
Uniform Resource Locator implementation.
Handles standard web url (schema://host:port/path).
Empty schema is mapped to the assets file. In example, ":icon.svg" references to icon.svg
file in your assets. See aui_compile_assets() and examples of asset usage.