载入中...
搜索中...
未找到
ResourceReader.cpp
浏览该文件的文档.
17 Diagnostic::error(DiagnosticCode::Failed, "filesystem provider could not read resource", uri.format()));
Filesystem consumer for strongly typed resource locators.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result< ResourceUri > fromLegacyProjectPath(std::string_view path)
Explicitly convert a legacy project-relative path.
Definition Uri.cpp:187
static Result< ResourceUri > parse(std::string_view text)
Parse a supported resource URI.
Definition Uri.cpp:168
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Result< std::vector< std::uint8_t > > read(const ResourceUri &uri) const
Read a supported project resource by typed URI.
Definition ResourceReader.cpp:27
virtual bool readFile(const std::string &path, std::vector< uint8_t > &out)=0
Reads an entire file.
Definition File.cpp:17
@ Unsupported
@ Failed
@ Project