Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2010, 1:00:42 PM (14 years ago)
Author:
dafrick
Message:

Doing some documentation.

File:
1 edited

Legend:

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

    r7417 r7484  
    2828
    2929/**
    30     @file
     30    @file NotificationListener.h
    3131    @brief Definition of the NotificationListener class.
     32    @ingroup Notifications
    3233*/
    3334
     
    5253    @brief
    5354        NotificationListener interface.
     55
     56        The NotificationListener interface presents a means to being informed when @ref orxonox::Notification "Notifications" in the target set of this NotificationListener change. (e.g. @ref orxonox::Notification "Notifications" were added or removed)
     57        When inheriting from a NotificationListener it is important to register (in the constructor) and unregister (in the destructor) it to and from the @ref orxonox::NotificationManager "NotificationManager".
    5458    @author
    5559        Fabian 'x3n' Landau
    5660    */
     61    //TODO: Needed? Remove or move some NotificationQueue things over here.
    5762    class _OrxonoxExport NotificationListener : virtual public OrxonoxClass
    5863    {
     
    6166            virtual ~NotificationListener() {}
    6267
    63             virtual const std::set<std::string> & getTargetsSet() = 0;
     68            /**
     69            @brief Get the senders that are targets of this NotificationListener.
     70            @return Returns the set of senders that are targets of this NotificationListener.
     71            */
     72            virtual const std::set<std::string> & getTargetsSet(void) = 0;
     73
     74            /**
     75            @brief Updates the whole NotificationListener.
     76                   This is called by the @ref orxonox::NotificationManager "NotificationManager" when the @ref orxonox::Notification "Notifications" have changed so much, that the NotificationListener may have to re-initialize his operations.
     77            */
    6478            virtual void update(void) = 0;
     79            /**
     80            @brief Updates the NotificationListener, when a new Notification has come in at the specified time.
     81            @param notification A pointer to the @ref orxonox::Notification "Notification".
     82            @param time The time the @ref orxonox::Notification "Notification" has come in.
     83            */
    6584            virtual void update(Notification* notification, const std::time_t & time) = 0;
    6685    };
Note: See TracChangeset for help on using the changeset viewer.