载入中...
搜索中...
未找到
PropertyAccess.h
浏览该文件的文档.
53 return static_cast<PropertyFlag>(static_cast<std::uint64_t>(left) | static_cast<std::uint64_t>(right));
57 return static_cast<PropertyFlag>(static_cast<std::uint64_t>(left) & static_cast<std::uint64_t>(right));
88 std::uint32_t version = 1;
122EVENGINE_API_FOUNDATION WriteResult validatePropertyValue(const PropertyDescriptor &property, const Value &value);
Vocabulary aliases for nullable and checked borrowed references.
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Owning, renderer-independent dynamic values.
Move-only RAII token that owns one observer registration.
Definition Subscription.h:27
Renderer- and transaction-independent MVVM property surface.
Definition PropertyAccess.h:151
virtual const PropertySchema & schema() const =0
Return the stable schema exposed by this model.
virtual std::optional< Value > read(const std::string &path) const =0
Read a property value, or nullopt when it is absent.
std::function< void(const PropertyChange &)> ChangeCallback
Definition PropertyAccess.h:153
virtual Subscription subscribe(ChangeCallback callback)=0
Observe changes until the returned token is destroyed.
virtual ~IPropertyAccess()=default
I property access.
virtual std::uint64_t revision() const =0
Monotonic revision incremented after observable changes.
virtual WriteResult write(const std::string &path, const Value &value)=0
Request a two-way binding write.
Definition PropertyAccess.cpp:7
constexpr bool hasFlag(PropertyFlag value, PropertyFlag flag)
True when flag.
Definition PropertyAccess.h:60
PropertyChangeState
Availability of a property in an immutable model snapshot.
Definition PropertyAccess.h:125
@ EditorOnly
PropertyKind
Semantic property kind used by renderer-independent presenters.
Definition PropertyAccess.h:19
@ ReadOnlyText
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24
Numeric editing metadata independent of a slider or spin-box widget.
Definition PropertyAccess.h:63
std::optional< double > minimum
Definition PropertyAccess.h:64
std::optional< double > maximum
Definition PropertyAccess.h:65
std::optional< double > step
Definition PropertyAccess.h:66
Immutable notification emitted after a model property changes.
Definition PropertyAccess.h:128
One stable property description consumed by any UI shell.
Definition PropertyAccess.h:72
NumericMetadata numeric
Definition PropertyAccess.h:80
Value defaultValue
Definition PropertyAccess.h:79
std::string description
Definition PropertyAccess.h:75
std::string displayName
Definition PropertyAccess.h:74
std::string category
Definition PropertyAccess.h:76
std::vector< std::string > choices
Definition PropertyAccess.h:81
std::string presenterHint
Definition PropertyAccess.h:82
Versioned schema for one view model or editable target.
Definition PropertyAccess.h:86
std::vector< PropertyDescriptor > properties
Definition PropertyAccess.h:89
Result of a model write, including a stable diagnostic code.
Definition PropertyAccess.h:96
static WriteResult reject(std::string code, std::string message)
Reject.
Definition PropertyAccess.h:104