LibPkg
|
A mixin class to allow an object to watch one or more tables. More...
#include <table.h>
Public Member Functions | |
watcher () | |
Construct watcher. More... | |
virtual | ~watcher () |
Destroy watcher. More... | |
void | watch (table &t) |
Begin watching table. More... | |
void | unwatch (table &t) |
Cease watching table. More... | |
virtual void | handle_change (table &t)=0 |
Handle change to table. More... | |
A mixin class to allow an object to watch one or more tables.
pkg::table::watcher::watcher | ( | ) |
Construct watcher.
|
virtual |
Destroy watcher.
void pkg::table::watcher::watch | ( | table & | t | ) |
Begin watching table.
t | the table to begin watching |
void pkg::table::watcher::unwatch | ( | table & | t | ) |
Cease watching table.
t | the table to cease watching |
|
pure virtual |
Handle change to table.
t | the table that has changed |
Reference Manual | LibPkg | Version 0.6.1 (28 Jan 2015) |