62#include "cppzmqzoltanext/czze_export.h"
109 bool is_success() const noexcept {
return _type == type_t::success; }
119 bool is_failure() const noexcept {
return _type == type_t::failure; }
129 bool is_stop() const noexcept {
return _type == type_t::stop; }
141 static zmq::message_t create_success();
153 static zmq::message_t create_failure();
165 static zmq::message_t create_stop();
183 static std::optional<signal_t> check_signal(
const zmq::message_t& msg)
noexcept;
186 explicit signal_t(type_t type) noexcept : _type(type) {}
Class representing signals for ZMQ communication.
type_t
Enumeration of possible signal types.
bool is_stop() const noexcept
Check if this signal is a stop signal.
bool is_success() const noexcept
Check if this signal is a success signal.
type_t type() const noexcept
Get the type of the signal.
bool is_failure() const noexcept
Check if this signal is a failure signal.