Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 13, 2009, 3:39:54 PM (16 years ago)
Author:
dafrick
Message:

Erradicated an infinite loop, and some wannabe-memory leaks. Also started the positioning of the notifications. I'd actually call it usable at this point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationManager.cc

    r2779 r2783  
    9797       
    9898        //!< Insert the notification in all queues that have its sender as target.
    99         for(std::map<NotificationQueue*,int>::iterator it = queueList_s.begin(); it != queueList_s.end(); it++)
     99        for(std::map<NotificationQueue*,int>::iterator it = queueList_s.begin(); it != queueList_s.end(); it++) //!< Iterate through all queues.
    100100        {
    101101            std::set<std::string> set = it->first->getTargetsSet();
     
    107107        }
    108108       
    109         COUT(3) << "NotificationQueue registered with the NotificationManager." << std::endl;
     109        COUT(3) << "Notification registered with the NotificationManager." << std::endl;
    110110       
    111111        return true;
     
    133133        {
    134134            notificationLists_s[index] = &allNotificationsList_s;
     135            COUT(3) << "NotificationQueue registered with the NotificationManager." << std::endl;
    135136            return true;
    136137        }
     
    148149        }
    149150       
    150         COUT(3) << "Notification registered with the NotificationManager." << std::endl;
    151        
    152151        queue->update(); //!< Update the queue.
     152
     153        COUT(3) << "NotificationQueue registered with the NotificationManager." << std::endl;
    153154       
    154155        return true;
     
    171172    /*static*/ std::multimap<std::time_t,Notification*>* NotificationManager::getNotifications(NotificationQueue* queue, const std::time_t & timeFrameStart, const std::time_t & timeFrameEnd)
    172173    {
    173         COUT(1) << "Queue: " << queue << ", timeFrameStart: " << timeFrameStart << ", timeFrameEnd: " << timeFrameEnd << std::endl;
    174    
    175174        std::multimap<std::time_t,Notification*>* notifications = NotificationManager::notificationLists_s[NotificationManager::queueList_s[queue]];
    176175       
Note: See TracChangeset for help on using the changeset viewer.