Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
SimpleLog< C > Class Template Reference

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

log_
 The raw log buffer.
 

Detailed Description

template<typename C>
class SimpleLog< C >

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.

Constructor & Destructor Documentation

◆ SimpleLog()

template<typename C >
SimpleLog< C >::SimpleLog ( )
inline

Definition at line 46 of file SimpleLog.hxx.

Member Function Documentation

◆ log()

template<typename C >
void SimpleLog< C >::log ( uint8_t  value)
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.

Member Data Documentation

◆ log_

template<typename C >
C SimpleLog< C >::log_
private

The raw log buffer.

Definition at line 61 of file SimpleLog.hxx.


The documentation for this class was generated from the following file: