24#include <QtCore/QString>
26#include "comms/comms.h"
27#include "property/message.h"
28#include "ProtocolMessageBase.h"
37template <
typename TMsgBase>
38class InvalidMessageImpl :
public
41 comms::option::NoIdImpl,
42 comms::option::FieldsImpl<std::tuple<> >,
43 comms::option::MsgType<InvalidMessageImpl<TMsgBase> >
51template <
typename TMessage>
52class InvalidMessage :
public
54 details::InvalidMessageImpl<TMessage>,
55 InvalidMessage<TMessage>
59 virtual ~InvalidMessage() noexcept = default;
63 nameImpl()
const override
65 if (property::message::TransportMsg().getFrom(*
this)) {
66 static const char* InvalidMsgStr =
"???";
70 static const char* GarbageStr =
"-#-";
74 virtual const QVariantList& fieldsPropertiesImpl()
const override
76 static const QVariantList Props;
80 virtual QString idAsStringImpl()
const override
85 virtual bool isValidImpl()
const override
90 virtual void resetImpl()
override
92 [[maybe_unused]]
static constexpr bool Must_not_be_called =
false;
93 assert(Must_not_be_called);
98 [[maybe_unused]]
static constexpr bool Must_not_be_called =
false;
99 assert(Must_not_be_called);