File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66namespace gp ::util {
77
8+ /* *
9+ * Interface to allow observation of a ISubject class.
10+ * This class can subscribe at an ISubject and the provided function
11+ * gets called by ISubject at certain events.
12+ */
813class IObserver {
914public:
1015 /* *
@@ -23,10 +28,17 @@ class IObserver {
2328};
2429
2530
31+ /* *
32+ * Interface to allow notification of subscribed IObserver classes.
33+ * It provides public functions for IObserver classes to subscribe
34+ * and unsubscribe. Further, this class provides a protected member
35+ * function notifyAll that notifies all subscribed IObserver classes.
36+ */
2637class ISubject {
2738public:
2839 ISubject ();
2940 ~ISubject ();
41+
3042 /* *
3143 * \brief
3244 */
@@ -38,6 +50,9 @@ class ISubject {
3850 bool unsubscribe (const IObserver* const observer);
3951
4052protected:
53+ /* *
54+ *
55+ */
4156 void notifyAll ();
4257
4358private:
You can’t perform that action at this time.
0 commit comments