layerLogger_sync
template<typename Layer> class layerLogger_sync
Synchronous logger optionally buffering data before writing to CSV.
-
Layer - Layer type exposing state_tuple_type and input buffers.
Functions
| Name | Description |
|---|---|
| layerLogger_sync | Constructs the synchronous logger. |
| start | Opens output streams and prepares internal buffers. |
| write | Copies current layer state and writes or buffers it. |
| stop | Flushes buffered data and closes files. |
Function Details
layerLogger_sync
layerLogger_sync(Layer& layer, const std::string& name, Mode mode = ACCUMULATE_AND_FINALIZE)
Constructs the synchronous logger.
-
layer - Layer to observe.
-
name - Base filename for CSV outputs.
-
mode - Logging mode controlling buffering behavior.
start
void start()
Opens output streams and prepares internal buffers.
stop
void stop()
Flushes buffered data and closes files.
write
void write(int step)
Copies current layer state and writes or buffers it.
-
step - Current simulation step index.