// $Id$
//
-// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Definition of non-inline non-template funPacketRegistry.ons
+/** \file
+ \brief PacketRegistry non-inline non-template implementation */
-#include "PacketRegistry.hh"
-#include "PacketRegistry.ih"
// Custom includes
+#include "Packets.hh"
+//#include "PacketRegistry.mpp"
#define prefix_
-///////////////////////////////PacketRegistry..p////////////////////////////////////////
+///////////////////////////////cc.p////////////////////////////////////////
-satcom::pkf::impl::PkReg_EntryImpl<satcom::pkf::DataPacket>
- satcom::pkf::impl::pkreg_dataEntry;
+prefix_ senf::PkReg_Entry::~PkReg_Entry()
+{}
-///////////////////////////////PacketRegistry..e////////////////////////////////////////
+prefix_ senf::detail::PacketRegistryImplBase::~PacketRegistryImplBase()
+{}
+
+prefix_ void senf::detail::PacketRegistryImplBase::dump(std::ostream & os)
+{
+ RegistryMap::const_iterator i (registries().begin());
+ RegistryMap::const_iterator const i_end (registries().end());
+ for (; i!=i_end; ++i) {
+ os << i->first << ":\n";
+ i->second->v_dump(os);
+ os << "\n";
+ }
+}
+
+prefix_ senf::detail::PacketRegistryImplBase::RegistryMap &
+senf::detail::PacketRegistryImplBase::registries()
+{
+ static RegistryMap map;
+ return map;
+}
+
+///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
+//#include "PacketRegistry.mpp"
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
// End: