#include <senf/Packets/PacketRegistry.hh>
This class is normally used via SENF_PACKET_REGISTRY_REGISTER. To use this class directly, define a symbol in the following way:
namespace { senf::PacketRegistry<Tag>::ScopedRegistrationProxy<PacketType> registerPacketType (key, optional_priority); }
Tag::key_t
under which the packet is to be registered. registerPacketType is an arbitrary name for the global symbol.
The packet will be registered in the constructor and will be unregistered when the scope of registerPacketType
ends.
Definition at line 113 of file PacketRegistry.hh.
Public Member Functions |
|
ScopedRegistrationProxy (typename Tag::key_t key, int priority=0) | |
~ScopedRegistrationProxy () |
senf::PacketRegistry< Tag >::PacketRegistry::ScopedRegistrationProxy< PacketType >:: | ||||
ScopedRegistrationProxy | ( | typename Tag::key_t | key, | |
int |
priority = 0
|
) | ||
Definition at line 39 of file PacketRegistry.cti.
senf::PacketRegistry< Tag >::PacketRegistry::ScopedRegistrationProxy< PacketType >::~ | ||||
~ScopedRegistrationProxy | () | |||
Definition at line 46 of file PacketRegistry.cti.