Page MenuHomePhorge

MessageHandler.cpp
No OneTemporary

Size
1002 B
Referenced Files
None
Subscribers
None

MessageHandler.cpp

/***************************************************************************//**
*
* \file core/MessageHandler.cpp
*
* \author David Juhasz (david.juhasz@tuwien.ac.at)
*
* \date 2017
*
* \brief Implementation for rosa/core/MessageHandler.hpp.
*
******************************************************************************/
#include "rosa/core/MessageHandler.hpp"
#include <algorithm>
namespace rosa {
MessageHandler::~MessageHandler(void) {
LOG_TRACE("Destroying MessageHandler");
}
bool MessageHandler::canHandle(const Message &Msg) const noexcept {
return std::any_of(Invokers.begin(), Invokers.end(),
[&Msg](const invoker_t &I) { return I->match(Msg); });
}
bool MessageHandler::operator()(const Message &Msg) const noexcept {
return std::any_of(Invokers.begin(), Invokers.end(),
[&Msg](const invoker_t &I) {
return (*I)(Msg) == Invoker::result_t::Invoked;
});
}
} // End namespace rosa

File Metadata

Mime Type
text/x-c++
Expires
Mon, Dec 1, 11:47 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
242610
Default Alt Text
MessageHandler.cpp (1002 B)

Event Timeline