Eclipse SUMO - Simulation of Urban MObility
MsgHandler.h File Reference
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <utils/iodevices/OutputDevice.h>
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_BEGIN_TIME_MESSAGE(msg)   SysUtils::getCurrentMillis(); 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_ERRORF(...)   MsgHandler::getErrorInstance()->informf(__VA_ARGS__);
 
#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);
 
#define WRITE_WARNINGF(...)   MsgHandler::getWarningInstance()->informf(__VA_ARGS__);
 

Detailed Description

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

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 279 of file MsgHandler.h.

◆ PROGRESS_BEGIN_TIME_MESSAGE

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

Definition at line 281 of file MsgHandler.h.

◆ PROGRESS_DONE_MESSAGE

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

Definition at line 280 of file MsgHandler.h.

◆ PROGRESS_FAILED_MESSAGE

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

Definition at line 283 of file MsgHandler.h.

◆ PROGRESS_TIME_MESSAGE

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

Definition at line 282 of file MsgHandler.h.

◆ WRITE_DEBUG

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

Definition at line 286 of file MsgHandler.h.

◆ WRITE_ERROR

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

Definition at line 284 of file MsgHandler.h.

◆ WRITE_ERRORF

#define WRITE_ERRORF (   ...)    MsgHandler::getErrorInstance()->informf(__VA_ARGS__);

Definition at line 285 of file MsgHandler.h.

◆ WRITE_GLDEBUG

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

Definition at line 287 of file MsgHandler.h.

◆ WRITE_MESSAGE

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

Definition at line 278 of file MsgHandler.h.

◆ WRITE_WARNING

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

Definition at line 276 of file MsgHandler.h.

◆ WRITE_WARNINGF

#define WRITE_WARNINGF (   ...)    MsgHandler::getWarningInstance()->informf(__VA_ARGS__);

Definition at line 277 of file MsgHandler.h.