载入中...
搜索中...
未找到
archspace_editor.cpp
浏览该文件的文档.
28class ArchSpaceEditorModule::TargetFactory final : public editor::IEditorAutomationTargetFactory {
30 std::vector<std::string_view> types() const override { return {"archspace", "archspace-document"}; }
32 editor::Result<editor::AutomationOwnedTarget> create(const editor::TargetId& target, std::string_view type,
45 if (!applied.ok()) return editor::Result<editor::AutomationOwnedTarget>::failure(applied.status());
68void ArchSpaceEditorModule::expose(ssq::Table& table) { table.addClass(name, ArchSpaceEditorModule::create, false); }
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
std::vector< std::string_view > types() const override
Stable target type names this factory accepts.
Definition archspace_editor.cpp:30
editor::Result< editor::AutomationOwnedTarget > create(const editor::TargetId &target, std::string_view type, const editor::EditorValue::Object &request) override
Create a domain target from an automation request. @ownership Success transfers the target and any su...
Definition archspace_editor.cpp:32
Composition adapter that contributes ArchSpace editing commands and automation targets.
Definition ArchSpaceEditorModule.h:19
Multi-provider extension point for domain-specific automation target creation.
Definition EditorAutomationTargetFactory.h:22
editing::Result< void > registerEditingCommands(editing::IEditingCommandRegistry ®istry)
Register ArchSpace-owned planned commands with a generic editing host.
Definition ArchSpaceEditingCommands.cpp:68
Definition archspace_editor.cpp:16
Definition Container.h:602
Target plus optional borrowed-dependency owner returned by an automation factory.
Definition EditorAutomationTargetFactory.h:15
std::unique_ptr< IEditableTarget > target
Definition EditorAutomationTargetFactory.h:18