HPS::AnnotationOperator::AnnotationInsertedEvent

class HPS::AnnotationOperator::AnnotationInsertedEvent : public HPS::Event

An event injected every time a new annotation is inserted. It contains the key of the segment containing the annotation and the view currently attached to this operator. This operator places each annotation in a separate segment.

Public Functions

inline AnnotationInsertedEvent()

The default constructor creates an empty AnnotationInsertedEvent object.

inline AnnotationInsertedEvent(Event const &in_event)

This constructor converts an Event Object to a MarkupInsertedEvent object.

Parameters

in_event – The Event Object to be converted.

inline AnnotationInsertedEvent(HPS::SegmentKey const &in_text_key, HPS::View const &in_view)
inline virtual Event *Clone() const

Allocates and returns a copy of this AnnotationInsertedEvent.

Returns

A copy of this MarkupIAnnotationInsertedEventnsertedEvent.

~AnnotationInsertedEvent()

Public Members

SegmentKey text_key
View view