1 #ifndef INCLUDE_AL_WATCHER_HPP
2 #define INCLUDE_AL_WATCHER_HPP
52 void watch(std::string resourcename);
60 virtual void onEvent(std::string resourcename, std::string eventname) {}
63 static void notify(std::string resourcename, std::string eventname);
virtual ~Watcher()
destructor automatically un-registers:
virtual void onEvent(std::string resourcename, std::string eventname)
the notification handler:
void unwatch(std::string resourcename)
stop notifications from a named resource
void watch(std::string resourcename)
get notifications from a named resource
void unwatch()
stop all notifications
static void notify(std::string resourcename, std::string eventname)
trigger a notification for a named resource