载入中...
搜索中...
未找到
eve::ui::PcgPhotoModeApplyPlan类 参考

Stable, reversible difference between two complete Pcg photo-mode snapshots. 更多...

#include <PcgPhotoModeApplyPlan.h>

Public 成员函数

Result< void > compile (const PcgPhotoModeValues &before, const PcgPhotoModeValues &after)
 Compile all changed fields in source declaration order.
 
Result< void > compileJson (const std::string &beforeJson, const std::string &afterJson)
 Compile two schema-1 JSON snapshots atomically.
 
Result< void > execute (IPhotoModeApplySink &sink)
 Execute through an explicit sink and roll back prior writes after a failure.
 
Result< void > executeRegistered ()
 Execute through the registered capability; absence is an observable failure.
 
uint64_t getCommandCount () const noexcept
 Return the number of changed assignments.
 
Result< std::string > getCommandField (uint64_t index) const
 Return a command field name.
 
Result< int > getCommandDomain (uint64_t index) const
 Return a command domain.
 
uint64_t getAppliedCount () const noexcept
 Return how many forward assignments completed in the last successful execution.
 
bool getRollbackComplete () const noexcept
 Return whether the last failed execution restored every prior assignment.
 
uint64_t getRevision () const noexcept
 Return plan revision, incremented only by successful compilation or execution.
 

详细描述

Stable, reversible difference between two complete Pcg photo-mode snapshots.

在文件 PcgPhotoModeApplyPlan.h 第 10 行定义.

成员函数说明

◆ compile()

Result< void > eve::ui::PcgPhotoModeApplyPlan::compile ( const PcgPhotoModeValues &  before,
const PcgPhotoModeValues &  after 
)

◆ compileJson()

Result< void > eve::ui::PcgPhotoModeApplyPlan::compileJson ( const std::string &  beforeJson,
const std::string &  afterJson 
)

Compile two schema-1 JSON snapshots atomically.

在文件 PcgPhotoModeApplyPlan.cpp 第 101 行定义.

引用了 a, b, compile(), eve::Result< T >::failure() , 以及 eve::ui::PcgPhotoModeValues::restoreJson().

◆ execute()

Result< void > eve::ui::PcgPhotoModeApplyPlan::execute ( IPhotoModeApplySink &  sink)

Execute through an explicit sink and roll back prior writes after a failure.

在文件 PcgPhotoModeApplyPlan.cpp 第 107 行定义.

引用了 eve::IPhotoModeApplySink::applyPhotoModeAssignment(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

被这些函数引用 executeRegistered().

◆ executeRegistered()

Result< void > eve::ui::PcgPhotoModeApplyPlan::executeRegistered ( )

Execute through the registered capability; absence is an observable failure.

在文件 PcgPhotoModeApplyPlan.cpp 第 125 行定义.

引用了 execute().

◆ getAppliedCount()

uint64_t eve::ui::PcgPhotoModeApplyPlan::getAppliedCount ( ) const
inlinenoexcept

Return how many forward assignments completed in the last successful execution.

在文件 PcgPhotoModeApplyPlan.h 第 23 行定义.

◆ getCommandCount()

uint64_t eve::ui::PcgPhotoModeApplyPlan::getCommandCount ( ) const
inlinenoexcept

Return the number of changed assignments.

在文件 PcgPhotoModeApplyPlan.h 第 20 行定义.

◆ getCommandDomain()

Result< int > eve::ui::PcgPhotoModeApplyPlan::getCommandDomain ( uint64_t  index) const

◆ getCommandField()

Result< std::string > eve::ui::PcgPhotoModeApplyPlan::getCommandField ( uint64_t  index) const

◆ getRevision()

uint64_t eve::ui::PcgPhotoModeApplyPlan::getRevision ( ) const
inlinenoexcept

Return plan revision, incremented only by successful compilation or execution.

在文件 PcgPhotoModeApplyPlan.h 第 25 行定义.

◆ getRollbackComplete()

bool eve::ui::PcgPhotoModeApplyPlan::getRollbackComplete ( ) const
inlinenoexcept

Return whether the last failed execution restored every prior assignment.

在文件 PcgPhotoModeApplyPlan.h 第 24 行定义.


该类的文档由以下文件生成: