Disk sidecar store keyed only by stable action AssetGuid. 更多...
#include <ActionPreviewProfile.h>
Public 成员函数 | |
| EVENGINE_API_EDITORS | ActionPreviewProfileStore (std::filesystem::path projectRoot) |
| Construct a store rooted at one project directory retained by value. | |
| EVENGINE_API_EDITORS Result< void > | save (const ActionPreviewProfile &profile) const |
Atomically validate and save one profile under .eve/action-preview. | |
| EVENGINE_API_EDITORS Result< ActionPreviewProfile > | load (const AssetGuid &actionAsset) const |
| Load and validate one profile without modifying caller state on failure. | |
| EVENGINE_API_EDITORS std::filesystem::path | pathFor (const AssetGuid &actionAsset) const |
| Return the stable sidecar path for diagnostics and file watching. | |
详细描述
Disk sidecar store keyed only by stable action AssetGuid.
在文件 ActionPreviewProfile.h 第 110 行定义.
构造及析构函数说明
◆ ActionPreviewProfileStore()
|
explicit |
Construct a store rooted at one project directory retained by value.
在文件 ActionPreviewProfile.cpp 第 259 行定义.
成员函数说明
◆ load()
| Result< ActionPreviewProfile > eve::editor::ActionPreviewProfileStore::load | ( | const AssetGuid & | actionAsset | ) | const |
Load and validate one profile without modifying caller state on failure.
在文件 ActionPreviewProfile.cpp 第 307 行定义.
引用了 eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::Value::fromJson(), eve::editor::ActionPreviewProfile::fromValue(), input, eve::NotFound, pathFor(), source , 以及 value.
◆ pathFor()
| std::filesystem::path eve::editor::ActionPreviewProfileStore::pathFor | ( | const AssetGuid & | actionAsset | ) | const |
Return the stable sidecar path for diagnostics and file watching.
在文件 ActionPreviewProfile.cpp 第 262 行定义.
◆ save()
| Result< void > eve::editor::ActionPreviewProfileStore::save | ( | const ActionPreviewProfile & | profile | ) | const |
Atomically validate and save one profile under .eve/action-preview.
在文件 ActionPreviewProfile.cpp 第 270 行定义.
引用了 eve::editor::ActionPreviewProfile::actionAsset, eve::Applied, error, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), output, pathFor(), eve::Status::success(), eve::Result< T >::success() , 以及 eve::editor::ActionPreviewProfile::toValue().
该类的文档由以下文件生成:
- src/modules/action/editor/ActionPreviewProfile.h
- src/modules/action/editor/ActionPreviewProfile.cpp