Ejemplo n.º 1
0
bool PollListenner::GetEvents(string uuid, Params &events)
{
    if (pollobjects.find(uuid) == pollobjects.end())
    {
        cDebugDom("poll_listener") << "uuid:" << uuid << " not found ! ";
        return false;
    }

    PollObject *o = pollobjects[uuid];

    events = o->getEvents();

    o->getEvents().clear();
    o->ResetTimer();

    return true;
}
Ejemplo n.º 2
0
bool PollListenner::GetEvents(string uuid, Params &events)
{
        if (pollobjects.find(uuid) == pollobjects.end())
        {
                Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::GetEvents uuid:" << uuid << " not found ! " << log4cpp::eol;
                return false;
        }

        PollObject *o = pollobjects[uuid];

        events = o->getEvents();

        o->getEvents().clear();
        o->ResetTimer();

        return true;
}