Handles URI parsing and path resolution for asset, artwork, and node protocols.
More...
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
Go to the source code of this file.
|
| namespace | toast::_detail |
| | Member-robber pattern used by the generated reflection code.
|
|
| enum class | URI : uint8_t { error
, asset
, artwork
, node
} |
|
|
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 > |
|
|
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 |
Handles URI parsing and path resolution for asset, artwork, and node protocols.
- Author
- Xein
- Date
- 22 May 2026