Allolib  1.0
C++ Components For Interactive Multimedia
al::Watcher Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/system/al_Watcher.hpp>

Public Member Functions

virtual ~Watcher ()
 destructor automatically un-registers:
 
void watch (std::string resourcename)
 get notifications from a named resource
 
void unwatch (std::string resourcename)
 stop notifications from a named resource
 
void unwatch ()
 stop all notifications
 
virtual void onEvent (std::string resourcename, std::string eventname)
 the notification handler:
 

Static Public Member Functions

static void notify (std::string resourcename, std::string eventname)
 trigger a notification for a named resource
 

Detailed Description

! base class for all notifiable objects: MyWatcher w; w.watch("foo"); Watcher::notify("foo", "bar");

Definition at line 46 of file al_Watcher.hpp.


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