Orxonox  0.0.5 Codename: Arcturus
SimpleNotification.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist
3  * > www.orxonox.net <
4  *
5  *
6  * License notice:
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Author:
23  * Damian 'Mozork' Frick
24  * Co-authors:
25  * ...
26  *
27  */
28 
35 #ifndef _SimpleNotification_H__
36 #define _SimpleNotification_H__
37 
39 
41 #include <string>
42 
43 namespace orxonox {
44 
67  {
68  public:
69  SimpleNotification(Context* context);
70  virtual ~SimpleNotification();
71 
72  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
73 
78  const std::string& getMessage(void)
79  { return this->message_; }
80 
81  protected:
87  { return this->message_; }
88 
89  private:
91 
97  { this->message_ = message; }
98  };
99 
100 }
101 
102 #endif // _SimpleNotification_H__
virtual const std::string & createNotificationMessage(void)
Creates the notification message that should be sent upon the SimpleNotification triggering.
Definition: SimpleNotification.h:86
::std::string string
Definition: gtest-port.h:756
A NotificationDispatcher is an entity that, upon being triggered, dispatches (or sends) a specified N...
Definition: NotificationDispatcher.h:75
The SimpleNotification class enables the sending of (in XML) predefined Notifications upon some kind ...
Definition: SimpleNotification.h:66
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
#define _NotificationsExport
Definition: NotificationsPrereqs.h:60
xmlelement
Definition: Super.h:519
Definition of the NotificationDispatcher class.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Mode
Definition: CorePrereqs.h:102
std::string message_
The message that is displayed.
Definition: SimpleNotification.h:90
Definition: Context.h:45
const std::string & getMessage(void)
Get the message, that is displayed.
Definition: SimpleNotification.h:78
void setMessage(const std::string &message)
Sets the message that is to be displayed.
Definition: SimpleNotification.h:96