|
Open Model Railroad Network (OpenMRN)
|
A very simple logging mechanism of driver events that is capable of logging a few entries of an 8-bit enum value, in a gdb-friendly way. More...
#include <SimpleLog.hxx>
Public Member Functions | |
| void | log (uint8_t value) |
| Append a byte worth of data to the end of the log buffer. | |
Private Attributes | |
| C | log_ |
| The raw log buffer. | |
A very simple logging mechanism of driver events that is capable of logging a few entries of an 8-bit enum value, in a gdb-friendly way.
C is typically uint64_t.
Definition at line 43 of file SimpleLog.hxx.
|
inline |
Definition at line 46 of file SimpleLog.hxx.
|
inline |
Append a byte worth of data to the end of the log buffer.
Rotates out some old data.
Definition at line 53 of file SimpleLog.hxx.
|
private |
The raw log buffer.
Definition at line 61 of file SimpleLog.hxx.