X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketRegistry.ih;h=a1d66ba6dd9be8d4e83f11c3bbf238cacebf976a;hb=3e2082d6966ef4e61ff8a2070b157251e5cb08a6;hp=169d2757e3de344d8ff4f42620a30c7d200fa4c7;hpb=6647a9d6691b69d1fc0d744c86177555ead5565d;p=senf.git diff --git a/senf/Packets/PacketRegistry.ih b/senf/Packets/PacketRegistry.ih index 169d275..a1d66ba 100644 --- a/senf/Packets/PacketRegistry.ih +++ b/senf/Packets/PacketRegistry.ih @@ -48,6 +48,7 @@ namespace senf { virtual Packet::factory_t factory() const = 0; ///< Get factory of the registered packet type virtual std::string name() const = 0; + virtual TypeIdValue typeIdValue() const = 0; }; namespace detail { @@ -62,6 +63,7 @@ namespace detail { { virtual Packet::factory_t factory() const; virtual std::string name() const; + virtual TypeIdValue typeIdValue() const ; }; /** \brief Internal: Registry implementation base-class and registry of registries @@ -123,6 +125,10 @@ namespace detail { template void registerPacket(key_t key); + template + void unregisterPacket(); + void unregisterPacket(key_t key); + key_t key(senf::TypeIdValue const & type); boost::optional key(senf::TypeIdValue const & type, bool);