#include <chrono>
#include <deque>
#include <iostream>
#include <map>
#include <memory>
#include <boost/noncopyable.hpp>
#include <boost/asio.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "ChannelEventsImpl.h"
#include "ChannelMessageHandlersImpl.h"
#include "CommandAttachmentImpl.h"
#include "Logger.h"
#include "MonitoringThread.h"
#include "StatImpl.h"
Go to the source code of this file.
◆ BEGIN_MSG_MAP
| #define BEGIN_MSG_MAP |
( |
|
theClass | ) |
|
◆ END_MSG_MAP
Value:default: \
LOG(
MiscCommon::error) <<
"The received message doesn't have a handler: " << _currentMsg->toString(); \
} \
} \
catch (std::exception & _e) \
{ \
} \
}
◆ MESSAGE_HANDLER
| #define MESSAGE_HANDLER |
( |
|
msg, |
|
|
|
func |
|
) |
| |
Value:case msg: \
{ \
typedef typename SCommandAttachmentImpl<msg>::ptr_t attahcmentPtr_t; \
attahcmentPtr_t attachmentPtr = SCommandAttachmentImpl<msg>::decode(_currentMsg); \
LOG(
MiscCommon::debug) <<
"Processing " << g_cmdToString[msg] <<
" received from " << remoteEndIDString(); \
processed = func(attachmentPtr); \
if (!processed) \
{ \
if (getNofMessageHandlers<msg>() == 0) \
{ \
LOG(
MiscCommon::error) <<
"The received message was not processed and has no registered handler: " \
<< _currentMsg->toString(); \
} \
else \
{ \
dispatchMessageHandlers(msg, attachmentPtr, this); \
} \
} \
break; \
}
◆ REGISTER_DEFAULT_REMOTE_ID_STRING
| #define REGISTER_DEFAULT_REMOTE_ID_STRING |
Value:std::string _remoteEndIDString() \
{ \
return "DDS Server"; \
}