Envision
A visual programming IDE for object-oriented languages
|
The base class for the Command and Reply class, it defines the stream reading and writing operators. More...
Public Types | |
using | ReadOperator = std::function< void(MessagePart *, QDataStream &)> |
using | WriteOperator = std::function< void(const MessagePart *, QDataStream &)> |
Public Member Functions | |
virtual | ~MessagePart () |
void | addMessageField (ReadOperator reader, WriteOperator writer=nullptr) |
virtual int | kind () const |
Static Public Member Functions | |
template<typename Enum > | |
static constexpr std::enable_if< std::is_enum< Enum >::value, typename std::underlying_type< Enum >::type >::type | cast (Enum enumValue) |
Casts an enum value to its underlying type. More... | |
Static Public Attributes | |
static const int | noKind {} |
Private Attributes | |
QList< ReadOperator > | readers_ |
QList< WriteOperator > | writers_ |
Friends | |
QDataStream & | operator<< (QDataStream &stream, const MessagePart &message) |
QDataStream & | operator>> (QDataStream &stream, MessagePart &message) |
The base class for the Command and Reply class, it defines the stream reading and writing operators.
This class should only be used by the Command and Reply class, i.e. clients should implement those classes.
using OODebug::MessagePart::ReadOperator = std::function<void (MessagePart*, QDataStream&)> |
using OODebug::MessagePart::WriteOperator = std::function<void (const MessagePart*, QDataStream&)> |
|
virtual |
void OODebug::MessagePart::addMessageField | ( | ReadOperator | reader, |
WriteOperator | writer = nullptr |
||
) |
|
staticconstexpr |
Casts an enum value to its underlying type.
|
virtual |
Reimplemented in OODebug::Event, OODebug::Modifier, OODebug::ArrayValues, and OODebug::Value.
|
friend |
|
friend |
|
static |
|
private |
|
private |