23 #ifndef KDSME_DEBUGINTERFACE_TYPES_H
24 #define KDSME_DEBUGINTERFACE_TYPES_H
26 #include <QDataStream>
31 class QAbstractTransition;
36 namespace DebugInterface {
46 explicit TransitionId(QAbstractTransition *transition =
nullptr)
47 : id(reinterpret_cast<quint64>(transition))
49 operator quint64()
const
56 inline QDataStream &operator<<(QDataStream &out,
TransitionId value)
62 inline QDataStream &operator>>(QDataStream &in, TransitionId &value)
73 explicit StateId(QAbstractState *state=
nullptr)
74 : id(reinterpret_cast<quint64>(state))
76 operator quint64()
const
83 inline QDataStream &operator<<(QDataStream &out,
StateId value)
89 inline QDataStream &operator>>(QDataStream &in, StateId &value)
103 inline QDataStream &operator<<(QDataStream &out, StateType value)
109 inline QDataStream &operator>>(QDataStream &in, StateType &value)
113 value =
static_cast<StateType
>(val);
117 typedef QList<StateId> StateMachineConfiguration;
119 inline void registerTypes()
121 qRegisterMetaTypeStreamOperators<StateId>();
122 qRegisterMetaTypeStreamOperators<StateMachineConfiguration>();
123 qRegisterMetaTypeStreamOperators<TransitionId>();
124 qRegisterMetaTypeStreamOperators<StateType>();
131 Q_DECLARE_METATYPE(
KDSME::DebugInterface::TransitionId)
132 Q_DECLARE_METATYPE(
KDSME::DebugInterface::StateMachineConfiguration)
133 Q_DECLARE_METATYPE(
KDSME::DebugInterface::StateType)
Definition: debuginterface_types.h:41
Definition: debuginterface_types.h:68
Definition: abstractexporter.h:33