Tulip  4.2.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
tlp::Event Class Reference

#include <Observable.h>

Inherited by tlp::GraphEvent, tlp::PluginEvent, and tlp::PropertyEvent.

Public Types

enum  EventType { TLP_DELETE = 0, TLP_MODIFICATION, TLP_INFORMATION, TLP_INVALID }
 

Public Member Functions

 Event (const Observable &sender, EventType type)
 
Observablesender () const
 
EventType type () const
 

Friends

class Graph
 
class Observable
 
class PropertyInterface
 

Detailed Description

Event is the base class for all events used in the Observation mechanism.

An Event is characterized by its type. The base Event class only carries informations as to the type of event, nothing specific.

Event::DELETE : send directly to all Observers/Listeners, not affected by Observable::holdObservers(). Event::MODIFICATION : sent to all Observers/Listeners. MODIFICATION are first sent to Observers and then to Listeners. Event::INFORMATION : sent only to Listeners. Event::INVALID : never sent, used internally for delaying events.

See Also
Listener
Observer
Observable

Definition at line 47 of file Observable.h.