mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
mal_packet_weaver::PacketTypeRegistrationHelper< T > Struct Template Reference

Helper class for registering a packet type with the PacketFactory. More...

#include "packet-factory.hpp"

Public Member Functions

 PacketTypeRegistrationHelper ()
 Constructor. Registers the packet type with the PacketFactory.
 

Detailed Description

template<typename T>
struct mal_packet_weaver::PacketTypeRegistrationHelper< T >

Helper class for registering a packet type with the PacketFactory.

This class is used to register a specific packet type with the PacketFactory during static initialization. It ensures that the packet type is registered with the PacketFactory before the main function is called.

Template Parameters
TThe packet type to be registered.

Definition at line 146 of file packet-factory.hpp.

Constructor & Destructor Documentation

◆ PacketTypeRegistrationHelper()

template<typename T >
mal_packet_weaver::PacketTypeRegistrationHelper< T >::PacketTypeRegistrationHelper ( )
inline

Constructor. Registers the packet type with the PacketFactory.

Definition at line 151 of file packet-factory.hpp.

Here is the call graph for this function:

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