Notification Module
The notification class provides coloured terminal logging and multi-threaded
progress-bar utilities. Every major framework class (analysis, io,
sampletracer, optimizer, metrics, model_template, etc.) inherits
from notification so that consistent console output is available everywhere.
Class: notification
Header: <notification/notification.h>
Inheritance: (base class — no parents)
Public Member Variables
Name |
Type |
Description |
|---|---|---|
|
|
Optional string prepended to every message (e.g. class name). |
|
|
When |
|
|
When |
|
|
ANSI colour code for warnings. Default |
|
|
ANSI colour code for failures. Default |
|
|
ANSI colour code for success messages. Default |
|
|
ANSI colour code for info messages. Default |
Logging Methods
Signature |
Description |
|---|---|
|
Prints message in green (ANSI 32) unless |
|
Prints message in yellow (ANSI 33) unless |
|
Prints message in red (ANSI 31) unless |
|
Prints message in white (ANSI 37) unless |
Progress-Bar Methods
Signature |
Description |
|---|---|
|
Renders a single-bar terminal progress indicator at fraction prog (0–1). |
|
Multi-bar variant: one progress bar per entry in threads, showing
|
|
Blocks until all threads in thr complete, rendering live progress bars. Returns the number of threads that finished without error. |
|
Joins all threads in thr without a progress bar. |
|
Static single-bar helper used by worker threads. |
|
Static multi-bar helper (pointer-based) for worker threads. |
|
Static multi-bar helper for a vector of progress targets. |