Poco

class Notification

Library: Foundation
Package: Notifications
Header: Poco/Notification.h

Description

The base class for all notification classes used with the NotificationCenter and the NotificationQueue classes. The Notification class can be used with the AutoPtr template class.

Inheritance

Direct Base Classes: RefCountedObject

All Base Classes: RefCountedObject

Known Derived Classes: Poco::Data::SQLChannel::LogNotification, TaskNotification, TaskStartedNotification, TaskCancelledNotification, TaskFinishedNotification, TaskFailedNotification, TaskProgressNotification, TaskCustomNotification, Poco::Net::SocketNotification, Poco::Net::ReadableNotification, Poco::Net::WritableNotification, Poco::Net::ErrorNotification, Poco::Net::TimeoutNotification, Poco::Net::IdleNotification, Poco::Net::ShutdownNotification, Poco::Net::SocketProactor::IONotification

Member Summary

Member Functions: name

Inherited Functions: duplicate, referenceCount, release

Types Aliases

Ptr

using Ptr = AutoPtr < Notification >;

Constructors

Notification

Notification(
    const std::string & name = "" s
);

Creates the notification.

Destructor

~Notification protected virtual

virtual ~Notification();

Member Functions

name virtual

virtual std::string name() const;

Returns the name of the notification. The default implementation returns the class name.

Variables

_pName protected

std::unique_ptr < std::string > _pName;