NAME

TB2::History::EventStorage - Store all events

SYNOPSIS

my $storage = TB2::History::EventStorage->new;

$storage->event_push($event);

my $events  = $storage->events;
my $results = $storage->results;

DESCRIPTION

This object stores TB2::Events.

Constructors

new

my $storage = TB2::History::EventStorage->new;

Create a new storage object.

Methods

events

my $events = $storage->events;

Returns all TB2::Events pushed in so far.

Do NOT alter this array directly. Use events_push.

results

my $results = $storage->results;

Returns just the TB2::Results pushed in so far.

Do NOT alter this array directly. Use events_push.

events_push

$storage->events_push(@events);

Add any number of @events to $storage->events.

SEE ALSO

TB2::History::NoEventStorage is like EventStorage but it silently throws away all events. Saves space.