EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
Logs Packets. More...
#include <eoLogger.h>
Public Member Functions | |
eoLogger () | |
eoReturn | Open (const char *filename) |
eoReturn | Close () |
eoReturn | Log (eoPacket &p, bool flush=false) |
eoReturn | Log (eoTelegram &tel, bool flush=false) |
eoReturn | Flush () |
Logs Packets.
The eoLogger logs Packets in binary to a specified file. Each packets precedes a timestamp.
eoLogger::eoLogger | ( | ) |
Constructor
eoReturn eoLogger::Close | ( | ) |
Closes the file that was opened using open()
eoReturn eoLogger::Flush | ( | ) |
Flushes the stream to file.
Logs a Packet of type Packet by appending it to the opened file with a preceding timestamp.
p | The Packet to be logged. |
flush | If true, after logging the packet p, the file is flushed |
eoReturn eoLogger::Log | ( | eoTelegram & | tel, |
bool | flush = false |
||
) |
Logs a Packet of type Packet by appending it to the opened file with a preceding timestamp.
p | The Packet to be logged. |
flush | If true, after logging the packet p, the file is flushed |
eoReturn eoLogger::Open | ( | const char * | filename | ) |
Opens a file for binary write access. Overwrites it if it exists.