载入中...
搜索中...
未找到
EditorDocumentService.h
浏览该文件的文档.
92 virtual Result<StoredDocument> compareAndSwap(const std::string& resourceUri, Revision expectedRevision,
103 Result<StoredDocument> compareAndSwap(const std::string& resourceUri, Revision expectedRevision,
156 Result<DocumentSnapshot> reconcileExternal(const DocumentId& document, ContentValidator validator);
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:19
Document coordinator with revision-safe requestSave/executeSave sequencing.
Definition EditorDocumentService.h:118
std::function< Result< void >(const EditorValue &)> ContentValidator
Synchronous content validator borrowed only for one external reconciliation call.
Definition EditorDocumentService.h:121
Compare-and-swap persistence boundary used by DocumentService.
Definition EditorDocumentService.h:85
virtual ~IAtomicDocumentStore()=default
Releases IAtomicDocumentStore resources.
virtual Result< StoredDocument > read(const std::string &resourceUri) const =0
Read the latest value for a resource URI.
virtual Result< StoredDocument > compareAndSwap(const std::string &resourceUri, Revision expectedRevision, const std::string &expectedContentHash, const EditorValue &content)=0
Replace a value only when the expected disk revision still matches.
Deterministic in-memory CAS store suitable for tests and transient tools.
Definition EditorDocumentService.h:98
Definition ActionPreviewController.cpp:6
DocumentState
Lifecycle state visible to workspaces and close coordination.
Definition EditorDocumentService.h:42
@ Loading
@ Conflict
DocumentKind
Authoring document category used to choose controllers and views.
Definition EditorDocumentService.h:16
@ AnimationGraph
@ ImportSettings
@ ParticleGraph
@ Timeline
@ MaterialInstance
@ Generic
@ UiDocument
@ MaterialFunction
@ Material
@ AnimationClip
@ ProjectSettings
Stable document identity; paths are deliberately excluded.
Definition EditorDocumentService.h:33
auto operator<=>(const DocumentKey &) const =default
Operator <=>.
Separate edit, saved and external-store revision clocks.
Definition EditorDocumentService.h:45
Immutable document metadata snapshot.
Definition EditorDocumentService.h:53
bool dirty() const
True when the latest edit revision has not been saved.
Definition EditorDocumentService.h:65
std::string diskContentHash
Definition EditorDocumentService.h:60
std::vector< StableId > viewIds
Definition EditorDocumentService.h:61
std::string resourceUri
Definition EditorDocumentService.h:57
DocumentRevision revision
Definition EditorDocumentService.h:59
std::vector< EditorDiagnostic > diagnostics
Definition EditorDocumentService.h:62
Immutable save request capturing one exact edit revision.
Definition EditorDocumentService.h:69
Revision expectedDiskRevision
Definition EditorDocumentService.h:73
std::string expectedContentHash
Definition EditorDocumentService.h:74
Revision capturedEditRevision
Definition EditorDocumentService.h:72
Value snapshot returned by an atomic document store.
Definition EditorDocumentService.h:78
std::string contentHash
Definition EditorDocumentService.h:81