From: tho Date: Fri, 15 Jan 2010 10:25:37 +0000 (+0000) Subject: Packets/80221Bundle: added static MIHF_IDs X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=9762e8c5d2f6c1264ba97acd3e589f6fa8f522c6;hp=a05fb2ebf7d957628a15b5c1eb9fbf3512dfa548;p=senf.git Packets/80221Bundle: added static MIHF_IDs git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1542 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Packets/80221Bundle/MIHTypes.cc b/senf/Packets/80221Bundle/MIHTypes.cc new file mode 100644 index 0000000..4c9e363 --- /dev/null +++ b/senf/Packets/80221Bundle/MIHTypes.cc @@ -0,0 +1,49 @@ +// $Id$ +// +// Copyright (C) 2009 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann +// +// 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 +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +/** \file + \brief MIH Types non-inline non-template implementation */ + +#include "MIHTypes.hh" +//#include "MIHTypes.ih" + +// Custom includes + +#define prefix_ +///////////////////////////////cc.p//////////////////////////////////////// + +senf::MIHFId const senf::MIHFId::Multicast; +senf::MIHFId const senf::MIHFId::None; + +///////////////////////////////cc.e//////////////////////////////////////// +#undef prefix_ + + +// Local Variables: +// mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 +// End: diff --git a/senf/Packets/80221Bundle/MIHTypes.hh b/senf/Packets/80221Bundle/MIHTypes.hh index ea8b5b2..64ae62b 100644 --- a/senf/Packets/80221Bundle/MIHTypes.hh +++ b/senf/Packets/80221Bundle/MIHTypes.hh @@ -46,6 +46,8 @@ namespace senf { public boost::equality_comparable { public: + static MIHFId const Multicast; ///< The multicast (empty) MIHF Id + static MIHFId const None; ///< The multicast (empty) MIHF Id enum Type { Empty, MACAddress, INet4Address, INet6Address, String, EUI64 }; MIHFId(); ///< Create empty instance.