载入中...
搜索中...
未找到
PropertyAccess.cpp
浏览该文件的文档.
51 case PropertyKind::Number: compatible = type == Value::Type::Number || type == Value::Type::Integer; break;
67 return WriteResult::reject("property_access.property.type", "Property value type does not match schema");
@ String
@ Array
@ Object
@ Bool
Definition PropertyAccess.cpp:7
WriteResult validateNumericComponent(const PropertyDescriptor &property, double number)
Definition PropertyAccess.cpp:16
WriteResult validateArrayArity(PropertyKind kind, const Value::Array &items)
Definition PropertyAccess.cpp:26
constexpr bool hasFlag(PropertyFlag value, PropertyFlag flag)
True when flag.
Definition PropertyAccess.h:60
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
std::optional< double > minimum
Definition PropertyAccess.h:64
std::optional< double > maximum
Definition PropertyAccess.h:65
One stable property description consumed by any UI shell.
Definition PropertyAccess.h:72
NumericMetadata numeric
Definition PropertyAccess.h:80
std::vector< std::string > choices
Definition PropertyAccess.h:81
eve::OptionalRef< const PropertyDescriptor > find(const std::string &path) const
Find a property by stable path, or an empty immediate borrow.
Definition PropertyAccess.cpp:9
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