The LogEntryImpl class implements a log entry using a dynamically allocated, but fixed-size buffer.
More...
#include <log.h>
The LogEntryImpl class implements a log entry using a dynamically allocated, but fixed-size buffer.
- See also
- Log
- Author
- Marty Janzen
- Version
- 3.6
Definition at line 229 of file log.h.
◆ LogEntryImpl()
LogEntryImpl::LogEntryImpl |
( |
const char *const |
n, |
|
|
unsigned char |
t |
|
) |
| |
|
inline |
Constructor with log class and severity level.
- Parameters
-
n | - The name of the logging module |
t | - The type of the log entry. The type is composed by logical or the log entry class with a level of 0 up to 15. |
- Note
- A error log of level 0 will stop program execution!
Definition at line 240 of file log.h.
References MAX_LOG_SIZE.
◆ ~LogEntryImpl()
virtual LogEntryImpl::~LogEntryImpl |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 252 of file log.h.
◆ add_string()
bool LogEntryImpl::add_string |
( |
const char * |
s | ) |
|
|
protectedvirtual |
Add a string to the log.
- Parameters
-
- Returns
- TRUE if the value has been added and FALSE if the log entry is full.
Implements LogEntry.
◆ bytes_left()
unsigned int LogEntryImpl::bytes_left |
( |
| ) |
|
|
inlineprotected |
Count the bytes left for additional values.
- Returns
- The number of bytes left in this log entry.
Definition at line 270 of file log.h.
References MAX_LOG_SIZE.
◆ get_value()
virtual const char* LogEntryImpl::get_value |
( |
| ) |
const |
|
inlinevirtual |
Get the contents of this log entry.
- Returns
- Current contents of this log entry.
Reimplemented from LogEntry.
Definition at line 262 of file log.h.
◆ output_stopped
bool LogEntryImpl::output_stopped |
|
private |
◆ ptr
◆ value
char* LogEntryImpl::value |
|
private |
The documentation for this class was generated from the following file: