Changeset 62 in pacpusframework for trunk/include/Pacpus/PacpusTools/BinaryDecoder.h


Ignore:
Timestamp:
01/09/13 17:26:04 (11 years ago)
Author:
Marek Kurdej
Message:

Update: license info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/PacpusTools/BinaryDecoder.h

    r3 r62  
    1 /*********************************************************************
    2 //  created:    2008/07/22 - 16:57
    3 //  filename:   BinaryDecoder.h
    4 //
    5 //  author:     Gerald Dherbomez
    6 //              Copyright Heudiasyc UMR UTC/CNRS 6599
    7 //
    8 //  version:    $Id: $
    9 //
    10 //  purpose:    Extract data of specified type in a string (char *)
    11 //              Usage:
    12 //              bool xDecodeToXXX(T* result, const char * data, const unsigned int startBit, const unsigned int length)
    13 //                => x = format (i:Intel, Little Endian)
    14 //                              (m:Motorola, Big Endian)
    15 //                => XXX = type of return value
    16 //                         (Bool = bool)
    17 //                         (I8 = char - 8 bits)
    18 //                         (UI8 = unsigned char - 8 bits)
    19 //                         (I16 = short - 16 bits)
    20 //                         (UI16 = unsigned short - 16 bits)
    21 //                         (I32 = long - 32 bits)
    22 //                         (UI32 = unsigned long - 32 bits)
    23 //                         (I64 = long long - 64 bits)
    24 //                         (UI16 = unisgned long long - 64 bits)
    25 //
    26 //              ex: inline bool mDecodeToUI16(r, str, 8, 12);
    27 //
    28 *********************************************************************/
     1// This file is part of the PACPUS framework distributed under the
     2// CECILL-C License, Version 1.0.
     3//
     4/// @author  Gerald Dherbomez <firstname.surname@utc.fr>
     5/// @date    July, 2008
     6/// @version $Id$
     7/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
     8/// @brief Extracts data of specified type in a string.
     9///
     10/// Purpose:    Extract data of specified type in a string (char *)
     11/// Usage:
     12///     bool xDecodeToXXX(T* result, const char * data, const unsigned int startBit, const unsigned int length)
     13///     => x = format (i:Intel, Little Endian)
     14///                   (m:Motorola, Big Endian)
     15///     => XXX = type of return value
     16///                   (Bool = bool)
     17///                   (I8 = char - 8 bits)
     18///                   (UI8 = unsigned char - 8 bits)
     19///                   (I16 = short - 16 bits)
     20///                   (UI16 = unsigned short - 16 bits)
     21///                   (I32 = long - 32 bits)
     22///                   (UI32 = unsigned long - 32 bits)
     23///                   (I64 = long long - 64 bits)
     24///                   (UI16 = unisgned long long - 64 bits)
     25///
     26///     ex: inline bool mDecodeToUI16(r, str, 8, 12);
    2927
    3028#ifndef BINARYDECODER_H
Note: See TracChangeset for help on using the changeset viewer.