switch to new MPL based Fraunhofer FOKUS Public License
[senf.git] / senf / Packets / IntParser.hh
index 5f3d727..e615d3d 100644 (file)
@@ -2,23 +2,28 @@
 //
 // Copyright (C) 2006
 // 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
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
+// The contents of this file are subject to the Fraunhofer FOKUS Public License
+// Version 1.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at 
+// http://senf.berlios.de/license.html
 //
-// 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.
+// The Fraunhofer FOKUS Public License Version 1.0 is based on, 
+// but modifies the Mozilla Public License Version 1.1.
+// See the full license text for the amendments.
 //
-// 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.
+// Software distributed under the License is distributed on an "AS IS" basis, 
+// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
+// for the specific language governing rights and limitations under the License.
+//
+// The Original Code is Fraunhofer FOKUS code.
+//
+// The Initial Developer of the Original Code is Fraunhofer-Gesellschaft e.V. 
+// (registered association), Hansastraße 27 c, 80686 Munich, Germany.
+// All Rights Reserved.
+//
+// Contributor(s):
+//   Stefan Bund <g0dil@berlios.de>
 
 /** \file
     \brief IntParser public header */
@@ -34,7 +39,7 @@
 #include "PacketParser.hh"
 
 //#include "IntParser.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #include "IntParser.ih"
 
 namespace senf {
@@ -59,7 +64,7 @@ namespace senf {
         \li <tt>p = v</tt>: Assigns the value to the packet field.
         \li <tt>p.value(v)</tt>: same as above.
         \li <tt>p.value()</tt>: Returns the fields value as an integer number.
-        \li Use of p like an integer in most contexts: <tt>p += v</tt>, <tt>p *= v</tt>, <tt>v = p +
+        \li Use of p like an integer in most contexts: <tt>p += v</tt>, <tt>p *= v</tt>, <tt>v = p
             1</tt> and so on. You will only need to use the explicit \c value() member in rare
             circumstances when the automatic conversion is ambiguous or in some template contexts.
 
@@ -76,7 +81,7 @@ namespace senf {
     {
         Int8Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int8_t value_type;
         static size_type const fixed_bytes = 1;
@@ -103,7 +108,7 @@ namespace senf {
     {
         UInt8Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint8_t value_type;
         static size_type const fixed_bytes = 1;
@@ -130,7 +135,7 @@ namespace senf {
     {
         Int16Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int16_t value_type;
         static size_type const fixed_bytes = 2;
@@ -158,7 +163,7 @@ namespace senf {
     {
         Int16LSBParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int16_t value_type;
         static size_type const fixed_bytes = 2;
@@ -186,7 +191,7 @@ namespace senf {
     {
         UInt16Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint16_t value_type;
         static size_type const fixed_bytes = 2;
@@ -213,7 +218,7 @@ namespace senf {
     {
         UInt16LSBParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint16_t value_type;
         static size_type const fixed_bytes = 2;
@@ -240,7 +245,7 @@ namespace senf {
     {
         Int24Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int32_t value_type;
         static size_type const fixed_bytes = 3;
@@ -268,7 +273,7 @@ namespace senf {
     {
         UInt24Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint32_t value_type;
         static size_type const fixed_bytes = 3;
@@ -295,7 +300,7 @@ namespace senf {
     {
         Int32Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int32_t value_type;
         static size_type const fixed_bytes = 4;
@@ -322,7 +327,7 @@ namespace senf {
     {
         UInt32Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint32_t value_type;
         static size_type const fixed_bytes = 4;
@@ -345,7 +350,7 @@ namespace senf {
     {
         UInt32LSBParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint32_t value_type;
         static size_type const fixed_bytes = 4;
@@ -375,7 +380,7 @@ namespace senf {
     {
         Int64Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int64_t value_type;
         static size_type const fixed_bytes = 8;
@@ -401,7 +406,7 @@ namespace senf {
     {
         UInt64Parser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint64_t value_type;
         static size_type const fixed_bytes = 8;
@@ -426,7 +431,7 @@ namespace senf {
     {
         UInt64LSBParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint64_t value_type;
         static size_type const fixed_bytes = 8;
@@ -470,7 +475,7 @@ namespace senf {
     {
         IntFieldParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::int32_t value_type;
         static size_type const start_bit = Start;
@@ -528,7 +533,7 @@ namespace senf {
     {
         UIntFieldParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef boost::uint32_t value_type;
         static size_type const start_bit = Start;
@@ -573,7 +578,7 @@ namespace senf {
     {
         FlagParser(data_iterator i, state_type s) : PacketParserBase(i,s,fixed_bytes) {}
 
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
 
         typedef bool value_type;
         static size_type const bit = Bit;
@@ -597,7 +602,7 @@ namespace senf {
 
 }
 
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #endif
 #if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_IntParser_i_)
 #define HH_SENF_Packets_IntParser_i_
@@ -606,7 +611,7 @@ namespace senf {
 //#include "IntParser.cti"
 #endif
 
-
+\f
 // Local Variables:
 // mode: c++
 // fill-column: 100