25 std::set<watcher*> _watchers;
41 void register_watcher(
watcher& w);
47 void deregister_watcher(
watcher& w);
55 std::set<table*> _tables;
71 void unwatch(
table& t);
76 virtual void handle_change(
table& t)=0;
The namespace used to hold the package management library.
Definition: auto_dir.cc:12
A mixin class to allow an object to watch one or more tables.
Definition: table.h:51
table()
Construct table.
Definition: table.cc:10
virtual ~table()
Destroy table.
Definition: table.cc:13
friend class watcher
Definition: table.h:21
void notify()
Notify watchers that a change has occurred.
Definition: table.cc:31
A base class to represent a data table.
Definition: table.h:18