Eclipse SUMO - Simulation of Urban MObility
MsgHandler.h File Reference
#include <string>
#include <vector>
#include <iostream>
Include dependency graph for MsgHandler.h:

Go to the source code of this file.

Data Structures

class  MsgHandler
 

Macros

#define PROGRESS_BEGIN_MESSAGE(msg)   MsgHandler::getMessageInstance()->beginProcessMsg((msg) + std::string("..."));
 
#define PROGRESS_DONE_MESSAGE()   MsgHandler::getMessageInstance()->endProcessMsg("done.");
 
#define PROGRESS_FAILED_MESSAGE()   MsgHandler::getMessageInstance()->endProcessMsg("failed.");
 
#define PROGRESS_TIME_MESSAGE(before)   MsgHandler::getMessageInstance()->endProcessMsg("done (" + toString(SysUtils::getCurrentMillis() - before) + "ms).");
 
#define WRITE_DEBUG(msg)   if(MsgHandler::writeDebugMessages()){MsgHandler::getDebugInstance()->inform(msg);};
 
#define WRITE_ERROR(msg)   MsgHandler::getErrorInstance()->inform(msg);
 
#define WRITE_GLDEBUG(msg)   if(MsgHandler::writeDebugGLMessages()){MsgHandler::getGLDebugInstance()->inform(msg);};
 
#define WRITE_MESSAGE(msg)   MsgHandler::getMessageInstance()->inform(msg);
 
#define WRITE_WARNING(msg)   MsgHandler::getWarningInstance()->inform(msg);
 

Detailed Description

Author
Daniel Krajzewicz
Michael Behrisch
Jakob Erdmann
Date
Tue, 17 Jun 2003
Version
$Id$

Definition in file MsgHandler.h.

Macro Definition Documentation

◆ PROGRESS_BEGIN_MESSAGE

#define PROGRESS_BEGIN_MESSAGE (   msg)    MsgHandler::getMessageInstance()->beginProcessMsg((msg) + std::string("..."));

Definition at line 241 of file MsgHandler.h.

◆ PROGRESS_DONE_MESSAGE

#define PROGRESS_DONE_MESSAGE ( )    MsgHandler::getMessageInstance()->endProcessMsg("done.");

Definition at line 242 of file MsgHandler.h.

◆ PROGRESS_FAILED_MESSAGE

#define PROGRESS_FAILED_MESSAGE ( )    MsgHandler::getMessageInstance()->endProcessMsg("failed.");

Definition at line 244 of file MsgHandler.h.

◆ PROGRESS_TIME_MESSAGE

#define PROGRESS_TIME_MESSAGE (   before)    MsgHandler::getMessageInstance()->endProcessMsg("done (" + toString(SysUtils::getCurrentMillis() - before) + "ms).");

Definition at line 243 of file MsgHandler.h.

◆ WRITE_DEBUG

#define WRITE_DEBUG (   msg)    if(MsgHandler::writeDebugMessages()){MsgHandler::getDebugInstance()->inform(msg);};

Definition at line 246 of file MsgHandler.h.

◆ WRITE_ERROR

#define WRITE_ERROR (   msg)    MsgHandler::getErrorInstance()->inform(msg);

Definition at line 245 of file MsgHandler.h.

◆ WRITE_GLDEBUG

#define WRITE_GLDEBUG (   msg)    if(MsgHandler::writeDebugGLMessages()){MsgHandler::getGLDebugInstance()->inform(msg);};

Definition at line 247 of file MsgHandler.h.

◆ WRITE_MESSAGE

#define WRITE_MESSAGE (   msg)    MsgHandler::getMessageInstance()->inform(msg);

Definition at line 240 of file MsgHandler.h.

◆ WRITE_WARNING

#define WRITE_WARNING (   msg)    MsgHandler::getWarningInstance()->inform(msg);

Definition at line 239 of file MsgHandler.h.