Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
dashboard.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "contur/core/error.h"
7
9
10namespace contur {
11
14 {
15 public:
17 virtual ~IDashboardView() = default;
18
22 [[nodiscard]] virtual Result<void> render(const TuiSnapshot &snapshot) = 0;
23
25 virtual void clear() = 0;
26 };
27
28} // namespace contur
Composite dashboard contract for rendering full panel layout.
Definition dashboard.h:14
virtual void clear()=0
Clears dashboard surface.
virtual Result< void > render(const TuiSnapshot &snapshot)=0
Renders dashboard from immutable snapshot.
virtual ~IDashboardView()=default
Virtual destructor for interface-safe polymorphic cleanup.
A result type that holds either a success value of type T or an ErrorCode.
Definition error.h:104
Error codes and Result<T> type for fallible operations.
Definition block.h:15
Top-level immutable model snapshot consumed by TUI controller/views.
Definition tui_models.h:93
Immutable DTO contracts for the external TUI MVC model layer.