X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketRegistry.ih;h=1a017093abf0ef9a3598bf9296e22d6d367816bb;hb=9a988902090d28007578e93bffd809f6bd913155;hp=2a752b2c68e15c6f6bdcd9473cfe0e6ebd056875;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/PacketRegistry.ih b/Packets/PacketRegistry.ih index 2a752b2..1a01709 100644 --- a/Packets/PacketRegistry.ih +++ b/Packets/PacketRegistry.ih @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -30,12 +30,13 @@ ///////////////////////////////ih.p//////////////////////////////////////// -namespace satcom { -namespace pkf { +namespace senf { + namespace impl { struct PkReg_Entry { - virtual void registerInterpreter(Packet const * p, + virtual ~PkReg_Entry() {} + virtual void registerInterpreter(Packet const * p, Packet::iterator b, Packet::iterator e) = 0; virtual Packet::ptr reinterpret(Packet * p) = 0; }; @@ -55,11 +56,11 @@ namespace impl { public: /////////////////////////////////////////////////////////////////////////// // Types - + typedef KeyType key_t; typedef impl::PkReg_Entry Entry; - + /////////////////////////////////////////////////////////////////////////// ///\name Structors and default members ///@{ @@ -76,7 +77,7 @@ namespace impl { template void registerPacket(key_t key); - key_t key(satcom::lib::TypeIdValue const & type); + key_t key(senf::TypeIdValue const & type); Entry * lookup(key_t key); @@ -88,7 +89,7 @@ namespace impl { typedef boost::shared_ptr Entry_ptr; typedef std::map PacketMap; - typedef std::map ReversePacketMap; + typedef std::map ReversePacketMap; PacketMap registry_; ReversePacketMap reverseRegistry_; @@ -96,7 +97,7 @@ namespace impl { extern PkReg_EntryImpl pkreg_dataEntry; -}}} +}} ///////////////////////////////ih.e//////////////////////////////////////// #endif @@ -104,5 +105,8 @@ namespace impl { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: