8#include <framework/pcore/zmq/messages/ZMQNoIdMessage.h>
10#include <framework/logging/Logger.h>
17 B2ASSERT(
"The message is an event message",
18 not
isMessage(EMessageTypes::c_eventMessage));
19 return getMessagePartAsString<c_data>();
25 const auto& type = getMessagePartAsString<c_type>();
26 return type.size() == 1 and type[0] ==
static_cast<char>(isType);
std::string getData() const
Get the data as string.
bool isMessage(EMessageTypes isType) const
The if the message is of a given type.
EMessageTypes
Type the messages can have.
Abstract base class for different kinds of events.