LibPkg
|
A class to represent one log entry. More...
#include <log.h>
Public Member Functions | |
log_entry () | |
Construct uninitialised log entry. More... | |
log_entry (const log_entry &other) | |
Copy constructor. More... | |
~log_entry () | |
Destroy entry freeing memory. More... | |
log_entry & | operator= (const log_entry &other) |
Assignment. More... | |
log_entry (LogCode code, const char *param1=0, const char *param2=0) | |
Construct log entry. More... | |
int | code () const |
Log entry error code. More... | |
int | type () const |
Log entry type. More... | |
int | sub_code () const |
Log entry sub code. More... | |
int | when () const |
Time since midnight of log entry. More... | |
std::string | when_text () const |
Time of log entry as text. More... | |
std::string | text () const |
Description of this log entry. More... | |
A class to represent one log entry.
pkg::log_entry::log_entry | ( | ) |
Construct uninitialised log entry.
pkg::log_entry::log_entry | ( | const log_entry & | other | ) |
Copy constructor.
References pkg::copystr().
pkg::log_entry::~log_entry | ( | ) |
Destroy entry freeing memory.
pkg::log_entry::log_entry | ( | LogCode | code, |
const char * | param1 = 0 , |
||
const char * | param2 = 0 |
||
) |
Construct log entry.
code | Entry log code |
param1 | first parameter or 0 (the default) for none |
param2 | second parameter or 0 (the default) for none |
References code(), and pkg::copystr().
Assignment.
References pkg::copystr().
|
inline |
|
inline |
|
inline |
|
inline |
Time since midnight of log entry.
The time in the logs will wrap every day
std::string pkg::log_entry::when_text | ( | ) | const |
Time of log entry as text.
std::string pkg::log_entry::text | ( | ) | const |
Description of this log entry.
References pkg::log_text, sub_code(), pkg::log_text_item::text, type(), and pkg::warning_text.
Reference Manual | LibPkg | Version 0.6.1 (28 Jan 2015) |