# Poco

# template < class TArgs >

# class FIFOEvent

Library: Foundation
Package: Events
Header: Poco/FIFOEvent.h

## Description

A FIFOEvent uses internally a FIFOStrategy which guarantees that delegates are invoked in the order they were added to the event.

Note that one object can only register one method to a FIFOEvent. Subsequent registrations will overwrite the existing delegate. For example:

    FIFOEvent<int> tmp;
    MyClass myObject;
    tmp += delegate(&myObject, &MyClass::myMethod1);
    tmp += delegate(&myObject, &MyClass::myMethod2);

The second registration will overwrite the first one.

## Inheritance

Direct Base Classes: AbstractEvent < TArgs, FIFOStrategy < TArgs, AbstractDelegate < TArgs >, p_less < AbstractDelegate < TArgs > > >, AbstractDelegate < TArgs > >

All Base Classes: AbstractEvent < TArgs, FIFOStrategy < TArgs, AbstractDelegate < TArgs >, p_less < AbstractDelegate < TArgs > > >, AbstractDelegate < TArgs > >

## Constructors

### FIFOEvent

FIFOEvent();

## Destructor

### ~FIFOEvent

~FIFOEvent();