GUIEvent_Message Class Reference

#include <GUIEvent_Message.h>

Inheritance diagram for GUIEvent_Message:

GUIEvent

Detailed Description

GUIEvent_Message Throw from GUIRunThread to GUIApplicationWindow and then further to all displays after a step has been performed

Definition at line 45 of file GUIEvent_Message.h.


Public Member Functions

const std::string & getMsg () const
 Returns the message.
GUIEventType getOwnType () const
 returns the event type
 GUIEvent_Message (MsgHandler::MsgType type, const std::string &msg)
 constructor
 ~GUIEvent_Message ()
 destructor

Protected Attributes

std::string myMsg
 The message.
GUIEventType myType
 the type of the event

Constructor & Destructor Documentation

GUIEvent_Message::GUIEvent_Message ( MsgHandler::MsgType  type,
const std::string &  msg 
) [inline]

constructor

Definition at line 48 of file GUIEvent_Message.h.

References EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, EVENT_WARNING_OCCURED, MsgHandler::MT_ERROR, MsgHandler::MT_MESSAGE, MsgHandler::MT_WARNING, and GUIEvent::myType.

00049             : GUIEvent(EVENT_MESSAGE_OCCURED), myMsg(msg) {
00050         switch (type) {
00051         case MsgHandler::MT_MESSAGE:
00052             myType = EVENT_MESSAGE_OCCURED;
00053             break;
00054         case MsgHandler::MT_WARNING:
00055             myType = EVENT_WARNING_OCCURED;
00056             break;
00057         case MsgHandler::MT_ERROR:
00058             myType = EVENT_ERROR_OCCURED;
00059             break;
00060         default:
00061             throw 1;
00062         }
00063     }

GUIEvent_Message::~GUIEvent_Message (  )  [inline]

destructor

Definition at line 66 of file GUIEvent_Message.h.

00066 { }


Member Function Documentation

const std::string& GUIEvent_Message::getMsg (  )  const [inline]

Returns the message.

Definition at line 69 of file GUIEvent_Message.h.

References myMsg.

Referenced by GUIApplicationWindow::handleEvent_Message().

00069                                     {
00070         return myMsg;
00071     }

GUIEventType GUIEvent::getOwnType (  )  const [inline, inherited]

returns the event type

Definition at line 76 of file GUIEvent.h.

References GUIEvent::myType.

Referenced by GUIApplicationWindow::eventOccured(), and GUIApplicationWindow::handleEvent_Message().

00076                                     {
00077         return myType;
00078     }


Field Documentation

std::string GUIEvent_Message::myMsg [protected]

The message.

Definition at line 76 of file GUIEvent_Message.h.

Referenced by getMsg().

GUIEventType GUIEvent::myType [protected, inherited]

the type of the event

Definition at line 91 of file GUIEvent.h.

Referenced by GUIEvent::getOwnType(), and GUIEvent_Message().


The documentation for this class was generated from the following file:

Generated on Wed May 5 00:06:43 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6