class Poco::AbstractObserver

The base class for all instantiations of the Observer and NObserver template classes.

#include <AbstractObserver.h>

class AbstractObserver
{
public:
    // construction

    AbstractObserver();
    AbstractObserver(const AbstractObserver& observer);

    // methods

    AbstractObserver&
    operator=(const AbstractObserver& observer);

    virtual
    void
    notify(Notification* pNf) const = 0;

    virtual
    bool
    equals(const AbstractObserver& observer) const = 0;

    virtual
    bool
    accepts(Notification* pNf) const = 0;

    virtual
    AbstractObserver*
    clone() const = 0;

    virtual
    void
    disable() = 0;
};

// direct descendants

template <
    class C,
    class N
    >
class NObserver;

template <
    class C,
    class N
    >
class Observer;