25 std::set<watcher*> _watchers;
41 void register_watcher(
watcher& w);
47 void deregister_watcher(
watcher& w);
55 std::set<table*> _tables;
A mixin class to allow an object to watch one or more tables.
Definition: table.h:51
void unwatch(table &t)
Cease watching table.
Definition: table.cc:58
table()
Construct table.
Definition: table.cc:10
virtual ~table()
Destroy table.
Definition: table.cc:13
virtual ~watcher()
Destroy watcher.
Definition: table.cc:43
void notify()
Notify watchers that a change has occurred.
Definition: table.cc:31
virtual void handle_change(table &t)=0
Handle change to table.
void watch(table &t)
Begin watching table.
Definition: table.cc:52
watcher()
Construct watcher.
Definition: table.cc:40
A base class to represent a data table.
Definition: table.h:18