Functions | |
int | TBT::init () |
this should be called before starting use of TBT | |
void | TBT::append (uint64_t key) |
append a key marked at the time this function is called | |
uint64_t | TBT::getkey () |
wait the time delta of the key and then returns it | |
int | TBT::load (char *filename) |
load a .tbt binary file | |
int | TBT::save_bin (char *filename) |
save a .tbt file in binary format | |
int | TBT::load_ascii (char *filename) |
load a .tbt ASCII file | |
int | TBT::save_ascii (char *filename) |
save a .tbt ASCII file, in plain text format | |
int | TBT::save_html (char *filename) |
save a .html page suitable for web browsers | |
int | TBT::save_doku (char *filename) |
save a dokuwiki page | |
void | TBT::clear () |
deletes all current keys and frees memory | |
Variables | |
int | TBT::position |
current position incremented by getkey calls |
Main TBT functionalities are provided by a few intuitive methods, easy to embed in object oriented software.
The high level API takes care of timing, calculating the delta for entries at the time the rec/play methods (TBT::append and TBT::getkey) are called. If an application requires to gain control over timing calculation then it is necessary to use the low level api.