Пример #1
0
void EventTriggerHandler::accept(EventData& event)
{
    if(event.validate(eventSequence.front()))
    {
        callback();
    }
}
Пример #2
0
void EventHandler::accept(EventData& event)
{
    if(!complete() && event.validate(eventSequence.front()))
    {
        eventSequence.pop();
        if(complete())
        {
            callback();
        }
    }
}