/[svn]/libgig/trunk/src/Serialization.cpp
ViewVC logotype

Diff of /libgig/trunk/src/Serialization.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3333 by schoenebeck, Sat Jul 29 09:57:08 2017 UTC revision 3454 by persson, Sun Jan 27 10:07:48 2019 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2017 Christian Schoenebeck                              *   *   Copyright (C) 2017-2019 Christian Schoenebeck                         *
4   *                      <cuse@users.sourceforge.net>                       *   *                           <cuse@users.sourceforge.net>                  *
5   *                                                                         *   *                                                                         *
6   *   This library is part of libgig.                                       *   *   This library is part of libgig.                                       *
7   *                                                                         *   *                                                                         *
# Line 21  Line 21 
21   *   MA  02111-1307  USA                                                   *   *   MA  02111-1307  USA                                                   *
22   ***************************************************************************/   ***************************************************************************/
23    
24    // enable implementation specific declarations in Serialization.h required to
25    // build this C++ unit, which should be ignored in the public API though
26    #define LIBGIG_SERIALIZATION_INTERNAL 1
27    
28  #include "Serialization.h"  #include "Serialization.h"
29    
30  #include <iostream>  #include <iostream>
# Line 286  namespace Serialization { Line 290  namespace Serialization {
290      bool DataType::operator<(const DataType& other) const {      bool DataType::operator<(const DataType& other) const {
291          return m_baseTypeName  < other.m_baseTypeName ||          return m_baseTypeName  < other.m_baseTypeName ||
292                (m_baseTypeName == other.m_baseTypeName &&                (m_baseTypeName == other.m_baseTypeName &&
293                 m_customTypeName  < other.m_customTypeName ||                (m_customTypeName  < other.m_customTypeName ||
294                (m_customTypeName == other.m_customTypeName &&                (m_customTypeName == other.m_customTypeName &&
295                 m_size  < other.m_size ||                (m_size  < other.m_size ||
296                (m_size == other.m_size &&                (m_size == other.m_size &&
297                 m_isPointer < other.m_isPointer)));                 m_isPointer < other.m_isPointer)))));
298      }      }
299    
300      /** @brief Greater than comparison.      /** @brief Greater than comparison.
# Line 573  namespace Serialization { Line 577  namespace Serialization {
577      bool Member::operator<(const Member& other) const {      bool Member::operator<(const Member& other) const {
578          return m_uid  < other.m_uid ||          return m_uid  < other.m_uid ||
579                (m_uid == other.m_uid &&                (m_uid == other.m_uid &&
580                 m_offset  < other.m_offset ||                (m_offset  < other.m_offset ||
581                (m_offset == other.m_offset &&                (m_offset == other.m_offset &&
582                 m_name  < other.m_name ||                (m_name  < other.m_name ||
583                (m_name == other.m_name &&                (m_name == other.m_name &&
584                 m_type < other.m_type)));                 m_type < other.m_type)))));
585      }      }
586    
587      /** @brief Greater than comparison.      /** @brief Greater than comparison.
# Line 1414  namespace Serialization { Line 1418  namespace Serialization {
1418          return (time_t) i;          return (time_t) i;
1419      }      }
1420    
1421      DataType _popDataTypeBlob(const char*& p, const char* end) {      static DataType _popDataTypeBlob(const char*& p, const char* end) {
1422          _Blob blob = _decodeBlob(p, end);          _Blob blob = _decodeBlob(p, end);
1423          p   = blob.p;          p   = blob.p;
1424          end = blob.end;          end = blob.end;

Legend:
Removed from v.3333  
changed lines
  Added in v.3454

  ViewVC Help
Powered by ViewVC