A single time based entry. More...
#include <tbt.h>
Public Member Functions | |
bool | parse_uint64 (void *buf) |
parse an entry from a 128 bit buffer: [(64)key,(64)time] | |
bool | parse_ascii (char *buf) |
parse an entry from a colon separated ASCII string (key:time) | |
int | render_uint64 (void *buf) |
render the entry into a 128 bit buffer | |
int | render_ascii (void *buf) |
render the entry into an ASCII string (colon separated) | |
int | render_html (void *buf) |
render the entry into HTML (javascript array) | |
Public Attributes | |
uint64_t | key |
key identifier for the entry, usually ASCII/ANSI/UTF-8 | |
uint64_t | msec |
time delta for the entry, noted as 1/100 seconds |
A single time based entry.
Every single entry (keypress) is implemented as described by this class: containing a key identifier TBTEntry::key and the time delta for the entry TBTEntry::msec (the time one should wait before giving the identifier).
You don't need to use this class: for high-level interaction the TBT:: class provides all what is needed to record and playback, using a linklist of TBTEntry:: . But in case you want low-level access to the data itself then you are looking in the right place.
Keep in mind that input (parsing) via single entry methods in this class is time independent: it won't save time of input, instead the higher level API provided by TBT:: will save the time delta at the moment when parsing methods are invoked.
Definition at line 152 of file tbt.h.