Skip to content

Commit

Permalink
Merge pull request #129 from rdumusc/master
Browse files Browse the repository at this point in the history
Removed boost::serialization that was used exclusively by Tide
  • Loading branch information
Raphael Dumusc authored Sep 22, 2016
2 parents 1b0add5 + a7079c7 commit 757a3a0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 153 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ set(DEFLECT_LICENSE BSD)
set(DEFLECT_DEPENDENT_LIBRARIES Boost)
set(DEFLECT_DEB_DEPENDS freeglut3-dev libxi-dev libxmu-dev
libjpeg-turbo8-dev libturbojpeg
libboost-date-time-dev libboost-program-options-dev libboost-serialization-dev
libboost-system-dev libboost-test-dev libboost-thread-dev
libboost-date-time-dev libboost-program-options-dev libboost-system-dev
libboost-test-dev libboost-thread-dev
qtbase5-dev qtdeclarative5-dev)
set(DEFLECT_PORT_DEPENDS boost freeglut qt5)

include(Common)

common_find_package(Boost REQUIRED COMPONENTS date_time program_options
serialization system thread unit_test_framework)
common_find_package(Boost REQUIRED COMPONENTS date_time program_options system
thread unit_test_framework)
common_find_package(GLUT)
common_find_package(LibJpegTurbo REQUIRED)
common_find_package(OpenGL)
Expand Down
18 changes: 3 additions & 15 deletions deflect/Frame.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*********************************************************************/
/* Copyright (c) 2014, EPFL/Blue Brain Project */
/* Raphael Dumusc <[email protected]> */
/* Copyright (c) 2014-2016, EPFL/Blue Brain Project */
/* Raphael Dumusc <[email protected]> */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or */
Expand Down Expand Up @@ -44,10 +44,8 @@
#include <deflect/types.h>
#include <deflect/Segment.h>

#include <QString>
#include <QSize>
#include <boost/serialization/access.hpp>
#include <boost/serialization/vector.hpp>
#include <QString>

namespace deflect
{
Expand All @@ -66,16 +64,6 @@ class Frame

/** Get the total dimensions of this frame. */
DEFLECT_API QSize computeDimensions() const;

private:
friend class boost::serialization::access;

template<class Archive>
void serialize( Archive & ar, const unsigned int )
{
ar & segments;
ar & uri;
}
};

}
Expand Down
37 changes: 2 additions & 35 deletions deflect/Segment.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*********************************************************************/
/* Copyright (c) 2013, EPFL/Blue Brain Project */
/* Raphael Dumusc <[email protected]> */
/* Copyright (c) 2013-2016, EPFL/Blue Brain Project */
/* Raphael Dumusc <[email protected]> */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or */
Expand Down Expand Up @@ -42,9 +42,6 @@

#include <deflect/SegmentParameters.h>

#include <boost/serialization/binary_object.hpp>
#include <boost/serialization/split_member.hpp>

#include <QByteArray>

namespace deflect
Expand All @@ -65,36 +62,6 @@ struct Segment

/** @internal raw, uncompressed source image, used for compression */
const ImageWrapper* sourceImage;

private:
friend class boost::serialization::access;

template<class Archive>
void save( Archive & ar, const unsigned int ) const
{
ar & parameters;

int size = imageData.size();
ar & size;

ar & boost::serialization::make_binary_object( (void*)imageData.data(),
imageData.size( ));
}

template<class Archive>
void load( Archive & ar, const unsigned int )
{
ar & parameters;

int size = 0;
ar & size;
imageData.resize( size );

ar & boost::serialization::make_binary_object( (void*)imageData.data(),
size );
}

BOOST_SERIALIZATION_SPLIT_MEMBER()
};

}
Expand Down
22 changes: 3 additions & 19 deletions deflect/SegmentParameters.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*********************************************************************/
/* Copyright (c) 2011 - 2012, The University of Texas at Austin. */
/* Copyright (c) 2013-2016, EPFL/Blue Brain Project */
/* Raphael Dumusc <[email protected]> */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or */
Expand Down Expand Up @@ -45,8 +46,6 @@
#include <stdint.h>
#endif

#include <boost/serialization/access.hpp>

namespace deflect
{

Expand Down Expand Up @@ -77,22 +76,7 @@ struct SegmentParameters
, width( 0 )
, height( 0 )
, compressed( true )
{
}

private:
friend class boost::serialization::access;

/** Serialization method */
template<class Archive>
void serialize( Archive & ar, const unsigned int )
{
ar & x;
ar & y;
ar & width;
ar & height;
ar & compressed;
}
{}
};

}
Expand Down
2 changes: 2 additions & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog {#Changelog}

### 0.12.0 (git master)

* [129](https://github.com/BlueBrain/Deflect/pull/129)
Cleared Deflect from boost::serialization that was used exclusively by Tide.
* [128](https://github.com/BlueBrain/Deflect/pull/128)
New events for transmitting all touch points in addition to existing gestures:
- Gives the ability to handle more than one touch point in applications (e.g.
Expand Down
80 changes: 0 additions & 80 deletions tests/cpp/SegmentParametersTests.cpp

This file was deleted.

0 comments on commit 757a3a0

Please sign in to comment.