载入中...
搜索中...
未找到
EditingProperty.cpp
浏览该文件的文档.
66Result<ResultValue> validationError(const eve::Result<void>& validation, const PropertyDescriptor& descriptor) {
73 return failed<ResultValue>(Status::Rejected, eve::DiagnosticCode::PreconditionViolation, RuleId(std::move(rule)),
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
const Diagnostic * error() const noexcept
Inspect the first diagnostic, or null when none was supplied.
Definition Result.h:329
bool ok() const noexcept
Whether this result represents a non-failure outcome.
Definition Result.h:286
PropertyDescriptorLookup public API.
Definition EditingProperty.h:91
Dotted property path (layout.size) compared and persisted as text.
Definition EditingIds.h:78
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
Definition ControlRigDocument.h:8
eve::Value toPresentationValue(const Value &value)
To presentation value.
Definition EditingProperty.cpp:98
@ Transform
@ AssetRef
@ ObjectRef
@ ReadOnlyText
@ ReadOnly
@ Advanced
@ MultiEdit
@ Transient
@ Runtime
@ EditorOnly
@ Dangerous
Result< void > validatePropertyValue(const PropertyDescriptor &descriptor, const Value &value)
Validate property value.
Definition EditingProperty.cpp:142
property_access::PropertyDescriptor toPresentationDescriptor(const PropertyDescriptor &source)
To presentation descriptor.
Definition EditingProperty.cpp:79
std::string_view diagnosticRule(const Diagnostic &diagnostic)
Return the projected property-access rule id, or empty when absent.
Definition PropertyAccess.h:125
PropertyKind
Semantic property kind used by renderer-independent presenters.
Definition PropertyAccess.h:21
Result< void > validatePropertyValue(const PropertyDescriptor &property, const Value &value)
Validate one candidate value against the shared property contract.
Definition PropertyAccess.cpp:39
@ PreconditionViolation
std::vector< PropertyDescriptor > properties
Definition EditingProperty.h:120
PropertyDescriptorLookup find(const PropertyPath &path) const
Finds find.
Definition EditingProperty.cpp:9
One stable property description consumed by any UI shell.
Definition PropertyAccess.h:74