Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 5:05:47 PM (14 years ago)
Author:
dafrick
Message:

Removing some TODO comments.
Better handling of duplicate name in Notificationlayer.lua.
Moving StringCompare object from NotificationListener to StringUtils.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/NotificationListener.h

    r7403 r7413  
    4141#include <string>
    4242
     43#include "util/StringUtils.h"
     44
    4345#include "core/OrxonoxClass.h"
    4446
     
    4648{
    4749    class Notification;
    48 
    49     /**
    50     @brief
    51         Struct that overloads the compare operation between two PickupIdentifier pointers.
    52     */
    53     //TODO:
    54     struct NotificationListenerStringCompare
    55     {
    56         bool operator() (const std::string& lhs, const std::string& rhs) const
    57             { return lhs.compare(rhs) < 0; }
    58     };
    5950
    6051    /**
     
    7061            virtual ~NotificationListener() {}
    7162
    72             virtual const std::set<std::string, NotificationListenerStringCompare> & getTargetsSet() = 0;
     63            virtual const std::set<std::string, StringCompare> & getTargetsSet() = 0;
    7364            virtual void update(void) = 0;
    7465            virtual void update(Notification* notification, const std::time_t & time) = 0;
Note: See TracChangeset for help on using the changeset viewer.