X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketRegistry.hh;h=868d4857803a40328030945de4ad51a6a9073318;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=497c143d0cf193aff69f2e17cb0eaf389860d4e7;hpb=c6fb7bc1210f26501d95064eb8e6399a881f884e;p=senf.git diff --git a/senf/Packets/PacketRegistry.hh b/senf/Packets/PacketRegistry.hh index 497c143..868d485 100644 --- a/senf/Packets/PacketRegistry.hh +++ b/senf/Packets/PacketRegistry.hh @@ -97,7 +97,7 @@ namespace senf { directly, define a symbol in the following way: \code namespace { - senf::PacketRegistry::RegistrationProxy + senf::PacketRegistry::ScopedRegistrationProxy registerPacketType (key, optional_priority); } \endcode @@ -110,10 +110,10 @@ namespace senf { of \c registerPacketType ends. */ template - struct RegistrationProxy + struct ScopedRegistrationProxy { - RegistrationProxy(typename Tag::key_t key, int priority=0); - ~RegistrationProxy(); + ScopedRegistrationProxy(typename Tag::key_t key, int priority=0); + ~ScopedRegistrationProxy(); }; /** \brief Register new packet type @@ -170,7 +170,7 @@ namespace senf { \tparam PacketType packet of which the key is requested \returns key of the packet wrapped in a boost::optional or + href="http://www.boost.org/doc/libs/release/libs/optional/index.html">boost::optional or an unbound optional, if the key is not found. */ template @@ -192,7 +192,7 @@ namespace senf { \param packet The packet of which the key is requested \returns key of the packet wrapped in a boost::optional or + href="http://www.boost.org/doc/libs/release/libs/optional/index.html">boost::optional or an unbound optional, if the key is not found. */ static typename boost::optional key(Packet const & packet, NoThrow_t); @@ -233,7 +233,7 @@ namespace senf { */ # define SENF_PACKET_REGISTRY_REGISTER( registry, value, type ) \ namespace { \ - senf::PacketRegistry< registry >::RegistrationProxy< type > \ + senf::PacketRegistry< registry >::ScopedRegistrationProxy< type > \ BOOST_PP_CAT(packetRegistration_, __LINE__) ( value ); \ } @@ -247,7 +247,7 @@ namespace senf { */ # define SENF_PACKET_REGISTRY_REGISTER_PRIORITY( registry, value, priority, type ) \ namespace { \ - senf::PacketRegistry< registry >::RegistrationProxy< type > \ + senf::PacketRegistry< registry >::ScopedRegistrationProxy< type > \ BOOST_PP_CAT(packetRegistration_, __LINE__) ( value, priority ); \ }