载入中...
搜索中...
未找到
ImportCommon.h
浏览该文件的文档.
71[[nodiscard]] EVENGINE_API_PLATFORM Result<void> finalizeImportReport(PreparedAssetImport& prepared,
Tool-side image and glTF importers producing canonical .eva candidates.
static Result< AssetRef > fromId(PersistentId id)
Build an asset reference from a non-nil persistent identity.
Definition ResourceRef.cpp:26
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 failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static HashFunction * getHashFunction(std::string function)
Get a HashFunction instance for the given function.
Definition HashFunction.cpp:589
virtual void hash(std::string function, const char *input, uint64_t length, Value &output) const =0
Hash the input, producing an set of bytes as output.
constexpr bool isNil() const noexcept
Returns whether this value is the all-zero nil ID.
Definition Identity.h:176
Definition ImportCommon.h:11
EVENGINE_API_PLATFORM Result< void > finalizeImportReport(PreparedAssetImport &prepared, const ImportPackageIdentity &package, std::string_view sourceEngine, std::string_view sourceVersion, Value::Object options={})
Append the deterministic mandatory import report and bind it from provenance.
Definition ImportReport.cpp:21
Result< asset::EvaManifest > baseManifest(const ImportPackageIdentity &package, std::string_view importer)
Base manifest.
Definition ImportCommon.h:31
@ InvalidArgument
Common stable package metadata supplied by an import transaction.
Definition AssetImporter.h:33
PersistentId packageId
Definition AssetImporter.h:34
std::string packageName
Definition AssetImporter.h:35
Value::Object provenance
Definition AssetImporter.h:37
std::string packageVersion
Definition AssetImporter.h:36
Owning, validated source archive candidate not yet published to disk/database.
Definition AssetImporter.h:90