---
name: "corelinux_Observer"
section: "3"
platform: "linux"
package: "libcorelinux-dev"
version: "0.4.32-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/corelinux_Observer"
---

# corelinux\_Observer(3)

Observer observes Subjets and supports the event interface for recieving subject event notifications.

## NAME

corelinux::Observer - **Observer** observes Subjets and supports the event interface for recieving subject event notifications.

## SYNOPSIS

`#include <Observer.hpp>`

Inherited by **SubjectObserver**` [private]`.

### Public Member Functions

**Observer** (void)\
 *Default constructor.*  **Observer** (**ObserverCref**)\
 *Copy constructor.*  virtual **~Observer** (void)\
 *Virtual destructor.*  **ObserverRef** **operator=** (**ObserverCref**)\
 *Assignment operator.*  bool **operator==** (**ObserverCref**) const \
 *Equality operator.*  bool **operator!=** (**ObserverCref**) const \
 *In-Equality operator.*  virtual void **event** (**Event**\< **Identifier** \> \*)  throw ( NullPointerException )\
 *Called by* **Subject::notifyObservers** *if this observer instance is registered for the event type.*

## Detailed Description

**Observer** observes Subjets and supports the event interface for recieving subject event notifications.

## Constructor & Destructor Documentation

### corelinux::Observer::Observer (ObserverCref)

Copy constructor. **Parameters:**

*Observer* const referencee

## Member Function Documentation

### void corelinux::Observer::event (Event\< Identifier \> \*) throw ( NullPointerException )` [virtual]`

Called by **Subject::notifyObservers** if this observer instance is registered for the event type. **Parameters:**

*Event* the type of event interested in

**Exceptions:**

*NullPointer* exception if event is null

## Author

Generated automatically by Doxygen for CoreLinux++ from the source code.
