Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F562134
MessageHandler.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1002 B
Referenced Files
None
Subscribers
None
MessageHandler.cpp
View Options
/***************************************************************************//**
*
* \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
Details
Attached
Mime Type
text/x-c++
Expires
Mon, Dec 1, 11:47 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
242610
Default Alt Text
MessageHandler.cpp (1002 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment