DisplayDataEvent.h

Classes

DisplayDataEvent -- Class for events sent by DisplayDatas (full description)

class DisplayDataEvent : public DisplayEvent

Interface

Public Members
DisplayDataEvent(DisplayData* dd)
virtual ~DisplayDataEvent()
virtual DisplayData *displayData() const
Protected Members
DisplayDataEvent()
DisplayDataEvent(const DisplayDataEvent &other)
DisplayDataEvent &operator=(const DisplayDataEvent &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Etymology

"DisplayDataEvents" describes "Events" (ie. things which happen at a measurable time) which are sent by DisplayDatas.

Prerequisite

Synopsis

This class adds to the information stored in the DisplayEvent class. It adds a pointer to the DisplayData itself.

Example

Motivation

There was a need for events that can be sent by display datas to signal modifications. DisplayEHs can listen to these events from any display data that transmits DisplayDataEvents

Thrown Exceptions

To Do

Member Description

DisplayDataEvent(DisplayData* dd)

Constructor, taking a pointer to a constant DD.

virtual ~DisplayDataEvent()

Destructor.

virtual DisplayData *displayData() const

Return a pointer to the DD that generated the event.

DisplayDataEvent()

(Required) default constructor.

DisplayDataEvent(const DisplayDataEvent &other)

(Required) copy constructor.

DisplayDataEvent &operator=(const DisplayDataEvent &other)

(Required) copy assignment.