480 Commits

Author SHA1 Message Date
Shane Grant
59f066f974 doxygen updates #22 2013-12-20 11:41:17 -08:00
Shane Grant
c98a232fb1 no longer calling versioning "boost transition layer"
Separating actual boost transition layer (operator&, <<, >>) with the versioning
stuff, which is now a feature of cereal on its own.

Moving macro for defining version information into cereal.hpp to make it visible.

Added code level (doxygen) documentation for these features

See issue #22
2013-12-20 11:36:05 -08:00
Shane Grant
4a698e9e76 Merge branch 'develop' of github.com:USCiLab/cereal into develop 2013-12-20 11:11:25 -08:00
Shane Grant
b85a2ad7bb Adds denormal support for json
see issue #31
2013-12-20 11:10:49 -08:00
Shane Grant
b5e1f3af26 Adding support for denormalized floating point 2013-12-20 10:43:02 -08:00
Shane Grant
a4b438e59e adds ability to parse infinity 2013-12-20 10:11:29 -08:00
Shane Grant
f178572e77 Adding ability to parse NaN 2013-12-20 10:08:09 -08:00
Randolph Voorhies
087a64298e Small code cleanup 2013-12-19 20:02:47 -08:00
Randolph Voorhies
6246b652a5 Making the Versions struct a StaticObject
This refs issue #37 and possibly fixes it.
2013-12-18 18:04:25 -08:00
Shane Grant
d6bfabe7cc Versioning working
see #8
2013-12-11 12:02:12 -08:00
Shane Grant
6dcef8370b unstable wip 2013-12-10 16:47:40 -08:00
Shane Grant
9a3b1a339c Boost transition layer saving working
See issue #8
2013-12-08 13:28:39 -08:00
Shane Grant
d30c21e5f8 Serialize (save) working with versioning
Simple case of making these functions for the rest of the output archive serialization functions and then adding it to
load.  Progress towards issue #8.
2013-12-04 23:58:58 -08:00
Shane Grant
e64ad60b4a closes #34 2013-12-04 23:39:50 -08:00
Shane Grant
2c15ff7103 More progress towards issue #8
Remaining things to do: Modify cereal.hpp to properly choose between
versioned and non-versioned functions and place entries in the set of
versioned types as appropriate.
2013-12-02 22:52:31 -08:00
Shane Grant
646d35222a Modified performance testing for Boost Transition Layer
Had to split apart the structs that were being serialized by both boost and cereal
as we no longer allow a type to have both versioned and non-versioned serialization functions
2013-12-02 22:32:43 -08:00
Shane Grant
cf64c03335 Working on type traits for Boost Transition Layer 2013-12-02 21:28:48 -08:00
Shane Grant
61315b09ec adding version macro for boost transition layer 2013-12-01 00:10:31 -08:00
Shane Grant
a5641c5421 implements operator& and <<, >> overloads for boost compat
see #8
2013-10-17 15:19:48 -07:00
Shane Grant
b733fe6f46 Should close #13
Cleaned up the implementation a little, I'm sure it can still be optimized further.  Undid some hacky things in
rapidjson that the old implementation utilized.
2013-10-17 11:35:55 -07:00
Shane Grant
855002604b unordered json working, needs to be optimized 2013-10-17 10:58:02 -07:00
Shane Grant
7bd5dffff9 working on json unordered loads, almost settled on a solution 2013-10-16 17:16:22 -07:00
Shane Grant
279d60c008 Fixes #27 2013-10-16 13:37:25 -07:00
Shane Grant
400b72ecfc Progress towards #13 unordered JSON loads 2013-10-14 12:04:57 -07:00
Shane Grant
54d02ab16a documentation and code cleanup 2013-10-14 11:09:50 -07:00
Shane Grant
4e7ec310b3 mostly comment changes 2013-10-12 16:03:28 -07:00
Shane Grant
8b170b1651 more reorg/doc updates 2013-10-09 11:33:27 -07:00
Shane Grant
767c9ee06f Making makefile a bit nicer, moving some code around in xml.hpp to better organize it 2013-10-09 11:23:08 -07:00
Shane Grant
83e06bdc7f Fix and close #19
All containers that used insert during loads (map, unordered_map, set, unordered_set)
now use emplace or emplace_hint and move their loaded values into position.
2013-09-12 10:23:43 -07:00
Shane Grant
112cb47c62 removed debug messages, closes #14 2013-09-06 17:17:29 -07:00
Shane Grant
3fccebb030 out of order XML working properly:
Errors in unittests turned out to be errors in the way the tests were written,
not in the actual XML archive.

Additional errors were due to improper loads in vector<bool>, which is now
fixed.
2013-09-06 17:14:44 -07:00
Shane Grant
db0f1cf47f Changed the way vector<bool> works to avoid issues with XML.
XML out of order seems to be working fine but the unit tests are running into a crash on the out of order test, which
doesn't show up in the sandbox version of the same thing.  Need to debug this and out of order should be good to go
for XML.
2013-09-06 16:33:23 -07:00
Shane Grant
7137314e58 debugging xml ooo 2013-09-06 15:43:22 -07:00
Shane Grant
7f857a2f42 more progress towards unordered XML - need to look everything over and clean up 2013-09-01 18:37:19 -07:00
Shane Grant
92559772f1 added unit test for unordered loads and fixed an error with loading/saving vectors of bools.
unit test is currently crashing on the xml load test
2013-09-01 16:11:36 -07:00
Shane Grant
04430f32ba Unordered loads looking good for XML, needs better testing though. 2013-09-01 15:18:54 -07:00
Shane Grant
0a35bd3dc8 Initial go at out of order loading working 2013-08-30 11:24:09 -07:00
Shane Grant
ba3505536d removing unused Void typetraits class 2013-07-22 10:00:10 -07:00
Shane Grant
c2a47f51b5 Fixing performance timing output to match that from develop branch
Adding documentation to MSVC only JSON changes for saving
2013-07-22 09:49:56 -07:00
Shane
2d543a45e2 changed to using automatic linking for boost, now linking against dlls 2013-07-19 22:34:43 -07:00
Shane
da03627ff1 Removed some (but not all) of the line endings I accidentally added while in VS.
Fixed a bunch of issues related to compiling unittests on VS.

Having a problem linking against boost unit tests, so can't run the tests yet.
2013-07-18 21:42:37 -07:00
Shane Grant
71fccb0b52 formatting, everything compiling properly under gcc/clang 2013-07-17 13:44:34 -07:00
Shane Grant
9ee407b1ab removing ==1 from trait checks 2013-07-17 12:20:08 -07:00
Shane Grant
06f675743c fixing gcc errors 2013-07-17 12:16:44 -07:00
Shane
fa9312534d everything working in VS, haven't run unit tests but sandboxes are looking good
polymorphic stuff seems fine.  finish up unit tests then test this back on linux
2013-07-16 22:33:23 -07:00
Shane Grant
bc3d236031 removed sizeof_array since sizeof() does the same thing.
modified array to use sizeof(array) instead of sizeof(T) * N

modified C style arrays to use sizeof() and proplery check for arithmetic types before doing a binary serialization
2013-07-16 14:15:04 -07:00
Shane
bdc16278fc vs project fun, polymorphic support not yet working 2013-07-15 22:32:40 -07:00
Shane
7e2d30a244 all archives now compiling
had to make a few changes to rapidjson since it uses constexprs in one location,
also had to make sure we used the correct sprintf in a place where we inserted the code
2013-07-15 21:10:59 -07:00
Shane
d326aad555 binary archive looks like it is working, putting in some static_casts to quiet down some warnings 2013-07-15 20:51:00 -07:00
Shane
67c3370ab9 XML Archive working on visual studio 2013 preview
I tried out a few things with traits to try and get things like:

template <class Archive>
void load( Archive const & ar, MyType const & t ) {}

to be errors (note the const).  I don't think it's possible to detect this stuff
in the traits that check if these exist, but we can probably catch it in the processImpls
2013-07-15 20:45:09 -07:00