LibPkg
Public Member Functions | List of all members
pkg::table::watcher Class Referenceabstract

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...
 

Detailed Description

A mixin class to allow an object to watch one or more tables.

Constructor & Destructor Documentation

pkg::table::watcher::watcher ( )

Construct watcher.

pkg::table::watcher::~watcher ( )
virtual

Destroy watcher.

Member Function Documentation

void pkg::table::watcher::watch ( table t)

Begin watching table.

Parameters
tthe table to begin watching
void pkg::table::watcher::unwatch ( table t)

Cease watching table.

Parameters
tthe table to cease watching
virtual void pkg::table::watcher::handle_change ( table t)
pure virtual

Handle change to table.

Parameters
tthe table that has changed

The documentation for this class was generated from the following files:

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)