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>

Inheritance diagram for pkg::table::watcher:
pkg::env_packages_table

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

◆ watcher()

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

Construct watcher.

◆ ~watcher()

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

Destroy watcher.

Member Function Documentation

◆ watch()

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

Begin watching table.

Parameters
tthe table to begin watching

Referenced by pkg::env_packages_table::env_packages_table().

◆ unwatch()

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

Cease watching table.

Parameters
tthe table to cease watching

◆ handle_change()

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.9.0 (4 Sep 2020)