# 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, Poco::AsyncNotificationCenter::ShutdownNotification, DataNotification, TaskNotification, TaskStartedNotification, TaskCancelledNotification, TaskFinishedNotification, TaskFailedNotification, TaskProgressNotification, TaskCustomNotification, Poco::MongoDB::TopologyChangeNotification, Poco::Net::ReadableNotification, Poco::Net::SocketNotification, Poco::Net::WritableNotification, Poco::Net::ErrorNotification, Poco::Net::TimeoutNotification, Poco::Net::IdleNotification, Poco::Net::ShutdownNotification, Poco::Net::SocketProactor::IONotification, Poco::Redis::RedisNotification, Poco::Redis::RedisConnectNotification, Poco::Redis::RedisDisconnectNotification, Poco::Redis::RedisErrorNotification

## 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

~Notification() override;

## Member Functions

### name

virtual std::string name() const;

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

## Variables

### _pName

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