Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
process_view.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <vector>
7
8#include "contur/core/error.h"
9#include "contur/core/types.h"
10
12
13namespace contur {
14
17 {
20
22 std::vector<TuiProcessSnapshot> processes;
23 };
24
27 {
28 public:
30 virtual ~IProcessView() = default;
31
35 [[nodiscard]] virtual Result<void> render(const TuiProcessViewModel &model) = 0;
36 };
37
38} // namespace contur
Process panel renderer contract.
virtual Result< void > render(const TuiProcessViewModel &model)=0
Renders process panel using immutable view model.
virtual ~IProcessView()=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
std::uint64_t Tick
Simulation clock tick counter.
Definition types.h:18
View model for process panel rendering.
Tick currentTick
Tick represented by the panel.
std::vector< TuiProcessSnapshot > processes
Process rows.
Immutable DTO contracts for the external TUI MVC model layer.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...