载入中...
搜索中...
未找到
EditingValue.cpp
浏览该文件的文档.
12 return Result<double>::failure(Diagnostic::error(DiagnosticCode::TypeMismatch, "expected Integer or Number"));
42bool checkValue(const Value& value, size_t depth, size_t maxDepth, size_t maxElements, size_t maxStringBytes,
91template __declspec(dllexport) const std::monostate* eve::editing::Value::getIf<std::monostate>() const;
99template __declspec(dllexport) const std::string* eve::editing::Value::getIf<std::string>() const;
100template __declspec(dllexport) eve::editing::Value::Array* eve::editing::Value::getIf<eve::editing::Value::Array>();
103template __declspec(dllexport) eve::editing::Value::Object* eve::editing::Value::getIf<eve::editing::Value::Object>();
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
bool isWithinLimits(size_t maxDepth, size_t maxElements, size_t maxStringBytes) const
Validate nesting, element count and approximate string byte limits.
Definition EditingValue.cpp:76
bool operator==(const Value &) const
Compare complete trees by value, independent of object insertion order.
Definition EditingValue.cpp:31
Definition ControlRigDocument.h:8
Result< double > numericValue(const Value &value)
Read an Integer or Number as an owning double without applying domain validation.
Definition EditingValue.cpp:8
@ TypeMismatch
A stable reference resolved to a different canonical domain type.
Definition Container.h:602