cc_tools_qt
Common Environment for Protocol Analysis.
|
#include "cc_tools_qt/ProtocolMessageBase.h"
Helper class used to implement several pure virtual functions defined in cc_tools_qt::Message interface class.
It can be used to eliminate boilerplate code for implementing resetImpl() and assignImpl() function. The code looks the same for every message class.
TMsgBase | Type of the actual message, implemented as part of the protocol |
TActualMessage | Type of the actual message class inheriting from this one |
Inherits TMsgBase.
Protected Member Functions | |
ProtocolMessageBase ()=default | |
Default constructor. | |
ProtocolMessageBase (const ProtocolMessageBase &)=default | |
Copy constructor. | |
ProtocolMessageBase (ProtocolMessageBase &&)=default | |
Move constructor. | |
~ProtocolMessageBase () noexcept=default | |
Destructor. | |
virtual bool | assignImpl (const cc_tools_qt::Message &other) override |
Overriding implementation to cc_tools_qt::Message::assignImpl() | |
virtual const char * | nameImpl () const override |
Overriding implementation to cc_tools_qt::Message::nameImpl() | |
ProtocolMessageBase & | operator= (const ProtocolMessageBase &)=default |
Copy assignment. | |
ProtocolMessageBase & | operator= (ProtocolMessageBase &&)=default |
Move assignment. | |
virtual void | resetImpl () override |
Overriding implementation to cc_tools_qt::Message::resetImpl() | |