cc_tools_qt
Common Environment for Protocol Analysis.
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
cc_tools_qt::ProtocolMessageBase< TMsgBase, TActualMsg > Class Template Reference

#include "cc_tools_qt/ProtocolMessageBase.h"

Detailed Description

template<typename TMsgBase, typename TActualMsg>
class cc_tools_qt::ProtocolMessageBase< TMsgBase, TActualMsg >

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.

Template Parameters
TMsgBaseType of the actual message, implemented as part of the protocol
TActualMessageType 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()
 
ProtocolMessageBaseoperator= (const ProtocolMessageBase &)=default
 Copy assignment.
 
ProtocolMessageBaseoperator= (ProtocolMessageBase &&)=default
 Move assignment.
 
virtual void resetImpl () override
 Overriding implementation to cc_tools_qt::Message::resetImpl()
 

The documentation for this class was generated from the following file: