Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 10:05:58 PM (15 years ago)
Author:
landauf
Message:

replaced tabs with spaces

Location:
code/trunk/src/orxonox/overlays
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OverlayGroup.cc

    r2911 r3034  
    113113    }
    114114
    115         /**
     115    /**
    116116    @brief
    117117        Removes an element from the map.
  • code/trunk/src/orxonox/overlays/notifications/Notification.h

    r2911 r3034  
    5656            Notification(const std::string & message);
    5757            virtual ~Notification();
    58            
     58
    5959            bool send(void); //!< Sends the Notification to the Notificationmanager, with sender NotificationManager::NONE;
    6060            bool send(const std::string & sender); //!< Sends the Notification to the Notificationmanager.
    61            
     61
    6262            /**
    6363            @brief Checks whether the Notification was sent.
     
    7272            inline const std::string & getMessage(void) const
    7373                { return this->message_; }
    74                
     74
    7575            inline const std::string & getSender(void) const
    7676                { return this->sender_; }
    77            
     77
    7878            bool setMessage(const std::string & message); //!< Sets the message of the notification.
    79            
     79
    8080        private:
    8181            std::string message_; //!< The Notification message.
    8282            std::string sender_; //!< The sender of the notification.
    8383            bool sent_; //!< Whether Notification has been sent, if so it cannot be changed.
    84            
     84
    8585            void initialize(void);
    86        
     86
    8787    };
    8888
  • code/trunk/src/orxonox/overlays/notifications/NotificationManager.h

    r2911 r3034  
    6060            NotificationManager();
    6161            virtual ~NotificationManager();
    62                
     62
    6363            static const std::string ALL;
    6464            static const std::string NONE;
    65          
     65
    6666            static NotificationManager & getInstance(); //! Returns a reference to the single instance of the NotificationManager.
    6767
    6868            bool registerNotification(Notification* notification); //!< Registers a Notification within the NotificationManager.
    6969            bool registerQueue(NotificationQueue* queue); //!< Registers a NotificationQueue within the NotificationManager.
    70            
     70
    7171            bool getNotifications(NotificationQueue* queue, std::multimap<std::time_t,Notification*>* map, const std::time_t & timeFrameStart, const std::time_t & timeFrameEnd); //!< Returns the Notifications for a specific NotificationQueue in a specified timeframe.
    72            
     72
    7373            /**
    7474            @brief Fetches the Notifications for a specific NotificationQueue starting at a specified time.
     
    8989            bool getNotifications(NotificationQueue* queue, std::multimap<std::time_t,Notification*>* map, int timeDelay)
    9090                { return this->getNotifications(queue, map, std::time(0)-timeDelay, std::time(0)); }
    91      
     91
    9292        private:
    9393            static NotificationManager* singletonRef_s;
    9494
    9595            int highestIndex_; //!< This variable holds the highest index (resp. key) in notificationLists_s, to secure that  no key appears twice.
    96        
     96
    9797            std::multimap<std::time_t,Notification*> allNotificationsList_; //!< Container where all notifications are stored (together with their respecive timestamps).
    9898            std::map<NotificationQueue*,int> queueList_; //!< Container where all NotificationQueues are stored with a number as identifier.
    9999            std::map<int,std::multimap<std::time_t,Notification*>*> notificationLists_; //!< Container where all Notifications, for each identifier (associated with a NotificationQueue), are stored.
    100            
     100
    101101
    102102    };
Note: See TracChangeset for help on using the changeset viewer.