23 #ifndef KDSME_DEBUGINTERFACE_TYPES_H
24 #define KDSME_DEBUGINTERFACE_TYPES_H
26 #include <QDataStream>
30 class QAbstractTransition;
34 namespace DebugInterface {
44 explicit TransitionId(QAbstractTransition *transition =
nullptr)
45 : id(reinterpret_cast<quint64>(transition))
47 operator quint64()
const
54 inline QDataStream &operator<<(QDataStream &out,
TransitionId value)
60 inline QDataStream &operator>>(QDataStream &in, TransitionId &value)
71 explicit StateId(QAbstractState *state=
nullptr)
72 : id(reinterpret_cast<quint64>(state))
74 operator quint64()
const
81 inline QDataStream &operator<<(QDataStream &out,
StateId value)
87 inline QDataStream &operator>>(QDataStream &in, StateId &value)
101 inline QDataStream &operator<<(QDataStream &out, StateType value)
107 inline QDataStream &operator>>(QDataStream &in, StateType &value)
111 value =
static_cast<StateType
>(val);
115 typedef QList<StateId> StateMachineConfiguration;
117 inline void registerTypes()
119 qRegisterMetaTypeStreamOperators<StateId>();
120 qRegisterMetaTypeStreamOperators<StateMachineConfiguration>();
121 qRegisterMetaTypeStreamOperators<TransitionId>();
122 qRegisterMetaTypeStreamOperators<StateType>();
129 Q_DECLARE_METATYPE(
KDSME::DebugInterface::TransitionId)
130 Q_DECLARE_METATYPE(
KDSME::DebugInterface::StateMachineConfiguration)
131 Q_DECLARE_METATYPE(
KDSME::DebugInterface::StateType)
Definition: debuginterface_types.h:39
Definition: debuginterface_types.h:66
Definition: abstractexporter.h:33