Toast Engine
Loading...
Searching...
No Matches
uri_handler.hpp File Reference

Handles URI parsing and path resolution for asset, artwork, and node protocols. More...

#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for uri_handler.hpp:

Go to the source code of this file.

Namespaces

namespace  toast::_detail
 Member-robber pattern used by the generated reflection code.

Enumerations

enum class  URI : uint8_t { error , asset , artwork , node }

Functions

auto toast::setAssetsPath (std::string_view path) -> void
 must be called before any handleURI(); not thread-safe after initialization
auto toast::setArtworkPath (std::string_view path) -> void
 must be called before any handleURI(); not thread-safe after initialization
auto toast::handleURI (std::string_view path) -> std::pair< URI, std::string >

Variables

constexpr std::string_view toast::_detail::asset_uri = "asset://"
constexpr std::string_view toast::_detail::artwork_uri = "artwork://"
constexpr std::string_view toast::_detail::node_uri = "node://"
std::string toast::_detail::assets_path
std::string toast::_detail::artworks_path

Detailed Description

Handles URI parsing and path resolution for asset, artwork, and node protocols.

Author
Xein
Date
22 May 2026