X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FIntParser.hh;h=e615d3d7b639276186112e60cb6fc8a3b41a0585;hb=ddb2132be4265f8a0d7d4c954c7c9401e59d027c;hp=e24f42964867a736aa6cbfc6bfb8bb9ccb8b8c9d;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Packets/IntParser.hh b/senf/Packets/IntParser.hh index e24f429..e615d3d 100644 --- a/senf/Packets/IntParser.hh +++ b/senf/Packets/IntParser.hh @@ -2,23 +2,28 @@ // // Copyright (C) 2006 // Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY -// Stefan Bund // -// 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 /** \file \brief IntParser public header */ @@ -34,7 +39,7 @@ #include "PacketParser.hh" //#include "IntParser.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "IntParser.ih" namespace senf { @@ -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_