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