Eclipse SUMO - Simulation of Urban MObility
MsgHandler.h File Reference
#include <config.h>
#include <string>
#include <vector>
#include <map>
#include <utils/common/StringUtils.h>
#include <utils/common/Translation.h>
#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()->endProcessMsg2(true);
 
#define PROGRESS_FAILED_MESSAGE()   MsgHandler::getMessageInstance()->endProcessMsg2(false);
 
#define PROGRESS_TIME_MESSAGE(before)   MsgHandler::getMessageInstance()->endProcessMsg2(true, SysUtils::getCurrentMillis() - before);
 
#define TL(string)   (string)
 
#define TLF(string, ...)   StringUtils::format(string, __VA_ARGS__)
 
#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_MESSAGEF(...)   MsgHandler::getMessageInstance()->informf(__VA_ARGS__);
 
#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
Mirko Barthauer
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 299 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 301 of file MsgHandler.h.

◆ PROGRESS_DONE_MESSAGE

#define PROGRESS_DONE_MESSAGE ( )    MsgHandler::getMessageInstance()->endProcessMsg2(true);

Definition at line 300 of file MsgHandler.h.

◆ PROGRESS_FAILED_MESSAGE

#define PROGRESS_FAILED_MESSAGE ( )    MsgHandler::getMessageInstance()->endProcessMsg2(false);

Definition at line 303 of file MsgHandler.h.

◆ PROGRESS_TIME_MESSAGE

#define PROGRESS_TIME_MESSAGE (   before)    MsgHandler::getMessageInstance()->endProcessMsg2(true, SysUtils::getCurrentMillis() - before);

Definition at line 302 of file MsgHandler.h.

◆ TL

#define TL (   string)    (string)

Definition at line 315 of file MsgHandler.h.

◆ TLF

#define TLF (   string,
  ... 
)    StringUtils::format(string, __VA_ARGS__)

Definition at line 317 of file MsgHandler.h.

◆ WRITE_DEBUG

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

Definition at line 306 of file MsgHandler.h.

◆ WRITE_ERROR

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

Definition at line 304 of file MsgHandler.h.

◆ WRITE_ERRORF

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

Definition at line 305 of file MsgHandler.h.

◆ WRITE_GLDEBUG

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

Definition at line 307 of file MsgHandler.h.

◆ WRITE_MESSAGE

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

Definition at line 297 of file MsgHandler.h.

◆ WRITE_MESSAGEF

#define WRITE_MESSAGEF (   ...)    MsgHandler::getMessageInstance()->informf(__VA_ARGS__);

Definition at line 298 of file MsgHandler.h.

◆ WRITE_WARNING

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

Definition at line 295 of file MsgHandler.h.

◆ WRITE_WARNINGF

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

Definition at line 296 of file MsgHandler.h.