载入中...
搜索中...
未找到
PropertyAccess.h 文件参考
#include "common/BorrowedRef.h"
#include "common/Export.h"
#include "common/Result.h"
#include "common/Subscription.h"
#include "common/Value.h"
#include <cstdint>
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

浏览源代码.

类

struct  eve::property_access::NumericMetadata
 Numeric editing metadata independent of a slider or spin-box widget. 更多...
 
struct  eve::property_access::PropertyDescriptor
 One stable property description consumed by any UI shell. 更多...
 
struct  eve::property_access::PropertySchema
 Versioned schema for one view model or editable target. 更多...
 
struct  eve::property_access::PropertyChange
 Immutable notification emitted after a model property changes. 更多...
 
class  eve::property_access::IPropertyAccess
 Renderer- and transaction-independent MVVM property surface. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::property_access
 

类型定义

using eve::property_access::Subscription = eve::Subscription
 Compatibility alias for the common observer lifetime token.
 

枚举

enum class  eve::property_access::PropertyKind {
  eve::property_access::Auto , eve::property_access::Bool , eve::property_access::Integer , eve::property_access::Number ,
  eve::property_access::String , eve::property_access::Enum , eve::property_access::Color , eve::property_access::Vec2 ,
  eve::property_access::Vec3 , eve::property_access::Vec4 , eve::property_access::AssetRef , eve::property_access::ObjectRef ,
  eve::property_access::Struct , eve::property_access::Array , eve::property_access::Map , eve::property_access::Action ,
  eve::property_access::ReadOnlyText
}
 Semantic property kind used by renderer-independent presenters. 更多...
 
enum class  eve::property_access::PropertyFlag : std::uint64_t {
  eve::property_access::None = 0 , eve::property_access::ReadOnly = 1ull << 0 , eve::property_access::Advanced = 1ull << 1 , eve::property_access::EditorOnly = 1ull << 2 ,
  eve::property_access::Runtime = 1ull << 3 , eve::property_access::Transient = 1ull << 4 , eve::property_access::Dangerous = 1ull << 5 , eve::property_access::MultiEdit = 1ull << 6
}
 Cross-host property visibility and editing flags. 更多...
 
enum class  eve::property_access::PropertyChangeState { eve::property_access::Value , eve::property_access::Mixed , eve::property_access::Missing }
 Availability of a property in an immutable model snapshot. 更多...
 

函数

constexpr PropertyFlag eve::property_access::operator| (PropertyFlag left, PropertyFlag right)
 Operator |.
 
constexpr PropertyFlag eve::property_access::operator& (PropertyFlag left, PropertyFlag right)
 Operator &.
 
constexpr bool eve::property_access::hasFlag (PropertyFlag value, PropertyFlag flag)
 True when flag.
 
Result< void > eve::property_access::rejected (std::string rule, std::string message, DiagnosticCode code=DiagnosticCode::PreconditionViolation)
 Build a rejected write/validation result with a stable rule string.
 
Result< void > eve::property_access::accepted ()
 Build a successful write/validation result.
 
std::string_view eve::property_access::diagnosticRule (const Diagnostic &diagnostic)
 Return the projected property-access rule id, or empty when absent.
 
std::string eve::property_access::writeRule (const Result< void > &result)
 Return the primary rule id from a write/validation result.
 
Result< void > eve::property_access::validatePropertyValue (const PropertyDescriptor &property, const Value &value)
 Validate one candidate value against the shared property contract.
 

变量

constexpr const char * eve::property_access::kRuleDiagnosticDetail = "rule"
 Reserved DiagnosticDetails key carrying a stable property-access rule id.