casa
$Rev:20696$
|
Parent for any class that wants to be notified about events in casapy. More...
#include <CasapyWatcher.h>
Public Member Functions | |
CasapyWatcher () | |
Non-Static //. | |
virtual | ~CasapyWatcher () |
Destructor. | |
virtual void | logChanged (const String &sinkLocation) |
Called when the log sink location and/or filter priority changes in casapy. | |
virtual void | logChanged (LogMessage::Priority filterPriority) |
virtual void | casapyClosing () |
Called when casapy is closing. | |
Static Public Member Functions | |
static void | registerWatcher (CasapyWatcher *watcher) |
Static //. | |
static void | unregisterWatcher (CasapyWatcher *watcher) |
Static Private Member Functions | |
static void | logChanged_ (const String &sinkLocation) |
Used to detect when casapy is closing. | |
static void | logChanged_ (LogMessage::Priority filterPriority) |
static void | casapyClosing_ () |
Called by the dbus component when casapy is closing. | |
Static Private Attributes | |
static vector< CasapyWatcher * > * | WATCHERS |
Static //. | |
Friends | |
class | dbus |
class | logsink |
Parent for any class that wants to be notified about events in casapy.
Definition at line 40 of file CasapyWatcher.h.
casac::CasapyWatcher::CasapyWatcher | ( | ) |
Non-Static //.
Constructor. Does NOT register watcher (call registerWatcher() to do so).
virtual casac::CasapyWatcher::~CasapyWatcher | ( | ) | [virtual] |
Destructor.
Unregisters watcher.
virtual void casac::CasapyWatcher::casapyClosing | ( | ) | [virtual] |
Called when casapy is closing.
Should be overridden if the child class wants to know when this happens.
static void casac::CasapyWatcher::casapyClosing_ | ( | ) | [static, private] |
Called by the dbus component when casapy is closing.
virtual void casac::CasapyWatcher::logChanged | ( | const String & | sinkLocation | ) | [virtual] |
Called when the log sink location and/or filter priority changes in casapy.
Should be overridden if the child class wants to know when this happens.
virtual void casac::CasapyWatcher::logChanged | ( | LogMessage::Priority | filterPriority | ) | [virtual] |
static void casac::CasapyWatcher::logChanged_ | ( | const String & | sinkLocation | ) | [static, private] |
Used to detect when casapy is closing.
Called by the logger component when the sink location or filter priority changes.
static void casac::CasapyWatcher::logChanged_ | ( | LogMessage::Priority | filterPriority | ) | [static, private] |
static void casac::CasapyWatcher::registerWatcher | ( | CasapyWatcher * | watcher | ) | [static] |
Static //.
Registers/Unregisters the given watcher.
static void casac::CasapyWatcher::unregisterWatcher | ( | CasapyWatcher * | watcher | ) | [static] |
friend class dbus [friend] |
Definition at line 43 of file CasapyWatcher.h.
friend class logsink [friend] |
Definition at line 44 of file CasapyWatcher.h.
vector<CasapyWatcher*>* casac::CasapyWatcher::WATCHERS [static, private] |