MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Acquisition.hpp File Reference
#include <expected>
Include dependency graph for Acquisition.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Platform::AcquireFailure
 Why an acquisition request was refused, with every path that was checked. More...
struct  MayaFlux::Platform::LibraryFromDirectories
 A shared library given by name, searched directly inside each of several directories. More...
struct  MayaFlux::Platform::LibraryFromPath
 A shared library at an explicit file path, absolute or relative to the working directory. More...
struct  MayaFlux::Platform::LibraryFromPrefix
 A shared library given by name, searched under one prefix. More...
struct  MayaFlux::Platform::LibraryFromSystem
 A shared library the system loader resolves by its exact file name. More...
struct  MayaFlux::Platform::LibraryLocation
 Where a library comes from after acquisition. More...
struct  MayaFlux::Platform::detail::Overloaded< Ts >

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Platform
namespace  MayaFlux::Platform::detail

Typedefs

template<typename T>
using MayaFlux::Platform::Acquired = std::expected<T, AcquireFailure>
using MayaFlux::Platform::LibrarySource = std::variant<LibraryFromPath, LibraryFromPrefix, LibraryFromDirectories, LibraryFromSystem>

Functions

Acquired< LibraryLocation > MayaFlux::Platform::detail::acquire_from_directories (const LibraryFromDirectories &from)
Acquired< LibraryLocation > MayaFlux::Platform::detail::acquire_from_path (const LibraryFromPath &from)
Acquired< LibraryLocation > MayaFlux::Platform::detail::acquire_from_prefix (const LibraryFromPrefix &from)
Acquired< LibraryLocation > MayaFlux::Platform::detail::acquire_from_system (const LibraryFromSystem &from)
Acquired< std::filesystem::path > MayaFlux::Platform::acquire_header_root (const std::filesystem::path &directory, std::string_view marker_file={})
 Validate a header root: an existing directory, optionally containing a marker file.
Acquired< LibraryLocation > MayaFlux::Platform::acquire_library (const LibrarySource &source)
 Resolve a library request to a location the loader can open.
std::optional< AcquireFailure > MayaFlux::Platform::detail::check_file_name (std::string_view name)
bool MayaFlux::Platform::detail::has_control_character (std::string_view name)
bool MayaFlux::Platform::detail::is_single_component (std::string_view name)
AcquireFailure MayaFlux::Platform::detail::make_failure (AcquireFailure::Reason reason, std::string request, std::vector< std::filesystem::path > tried={})
template<typename... Ts>
 MayaFlux::Platform::detail::Overloaded (Ts...) -> Overloaded< Ts... >
bool MayaFlux::Platform::detail::path_exists (const std::filesystem::path &path)
bool MayaFlux::Platform::detail::path_is_directory (const std::filesystem::path &path)
bool MayaFlux::Platform::detail::path_is_regular_file (const std::filesystem::path &path)
std::vector< std::string > MayaFlux::Platform::detail::prefix_file_names (const std::string &base_name)
std::expected< std::filesystem::path, AcquireFailure > MayaFlux::Platform::detail::resolve_absolute (const std::filesystem::path &path)
std::string MayaFlux::Platform::detail::shared_library_file_name (const std::string &base_name)