38 lines
2.2 KiB
TeX
38 lines
2.2 KiB
TeX
% Reviewed generic operation sketches; bounded history exists, no frozen generic API.
|
|
\begin{tikzpicture}
|
|
\node[umlClass,text width=9cm,anchor=north] at (0,0) {
|
|
\textbf{tkrTikzDocument}\\\textit{existing class; bounded history implemented}
|
|
\nodepart{second} Own source, revision, saved baseline and history.\\
|
|
Prepare acceptance before publishing source/history together.
|
|
\nodepart{third} + applyTransaction(transaction): result\\
|
|
+ undo(), redo(): result\\
|
|
+ loadSource(...); markSaved(writtenSnapshot)\\
|
|
Restore exact bytes; advance revision; append no restoration entry.};
|
|
\node[umlClass,text width=9cm,anchor=north] at (11.5,0) {
|
|
\textbf{tkrEditService}\\\textit{existing class; planned generic extension}
|
|
\nodepart{second} Read-only snapshot and requested intent.\\
|
|
Provider supplies geometry; host/syntax route prepares byte edits.\\
|
|
No live source, history, file or widget mutation.
|
|
\nodepart{third} + prepareEdit(snapshot, request): proposalResult\\
|
|
Prepare candidate and supported-operation checks.};
|
|
\node[umlClass,text width=9cm,anchor=north] at (0,-8) {
|
|
\textbf{tkrEditHistory}\\\textit{existing session history; broader design sketch}
|
|
\nodepart{second} - entries: exact before/after bytes and descriptions\\
|
|
- position: current history cursor
|
|
\nodepart{third} + prepare entry; retrieve undo/redo target\\
|
|
+ complete accepted change/restoration; reset\\
|
|
+ query availability/description\\
|
|
Document coordinates publication; failure moves no cursor.};
|
|
\node[umlClass,text width=9cm,anchor=north] at (11.5,-8) {
|
|
\textbf{tkrDocumentFileStore}\\\textit{planned new class; owned by controller}
|
|
\nodepart{second} Path, source bytes and expected disk baseline.\\
|
|
No edit planning or history state.
|
|
\nodepart{third} + read(path): readResult\\
|
|
+ write(path, bytes, baseline): writeResult\\
|
|
Successful I/O permits document load/baseline update.\\
|
|
Save keeps history; successful document replacement clears it.};
|
|
\node[font=\footnotesize,align=center,text width=20cm,anchor=north] at (5.75,-15.2) {
|
|
Reviewed design; bounded history exists; file store/generic transactions remain planned. No automatic eviction; future limits and provider-dependent retained work remain open.\\
|
|
Exact C++ signatures and construction mechanisms require implementation review.};
|
|
\end{tikzpicture}
|