 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef MsgHandlerSynchronized_h
19 #define MsgHandlerSynchronized_h
55 void inform(std::string msg,
bool addType =
true) {
56 FXMutexLock locker(
myLock);
68 FXMutexLock locker(
myLock);
74 FXMutexLock locker(
myLock);
80 FXMutexLock locker(
myLock);
86 FXMutexLock locker(
myLock);
92 FXMutexLock locker(
myLock);
void endProcessMsg(std::string msg)
Ends a process information.
~MsgHandlerSynchronized()
destructor
Static storage of an output device and its base (abstract) implementation.
MsgHandlerSynchronized(MsgType type)
standard constructor
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
virtual void beginProcessMsg(std::string msg, bool addType=true)
Begins a process information.
void clear()
Clears information whether an error occurred previously.
void addRetriever(OutputDevice *retriever)
Adds a further retriever to the instance responsible for a certain msg type.
virtual void clear()
Clears information whether an error occurred previously.
static MsgHandler * create(MsgType type)
void inform(std::string msg, bool addType=true)
adds a new error to the list
virtual void endProcessMsg(std::string msg)
Ends a process information.
void removeRetriever(OutputDevice *retriever)
Removes the retriever from the handler.
MsgHandlerSynchronized & operator=(const MsgHandlerSynchronized &s)=delete
invalid assignment operator
virtual void addRetriever(OutputDevice *retriever)
Adds a further retriever to the instance responsible for a certain msg type.
MsgHandlerSynchronized(const MsgHandlerSynchronized &s)=delete
invalid copy constructor
FXMutex myLock
The lock for synchronizing all outputs using handlers of this class.
void beginProcessMsg(std::string msg, bool addType=true)
Begins a process information.
virtual void removeRetriever(OutputDevice *retriever)
Removes the retriever from the handler.