-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from rdumusc/master
Removed boost::serialization that was used exclusively by Tide
- Loading branch information
Showing
6 changed files
with
14 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
|
@@ -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 | ||
{ | ||
|
@@ -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; | ||
} | ||
}; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
|
@@ -42,9 +42,6 @@ | |
|
||
#include <deflect/SegmentParameters.h> | ||
|
||
#include <boost/serialization/binary_object.hpp> | ||
#include <boost/serialization/split_member.hpp> | ||
|
||
#include <QByteArray> | ||
|
||
namespace deflect | ||
|
@@ -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() | ||
}; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
|
@@ -45,8 +46,6 @@ | |
#include <stdint.h> | ||
#endif | ||
|
||
#include <boost/serialization/access.hpp> | ||
|
||
namespace deflect | ||
{ | ||
|
||
|
@@ -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; | ||
} | ||
{} | ||
}; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.