Commit Graph

30 Commits

Author SHA1 Message Date
Shane Grant
1f64755397 added some comments to xml for loadvalue, everything running fine through valgrind now 2013-07-06 15:58:55 -07:00
Shane Grant
283db1b09d fixes a memory issue with rapidxml, we need to make sure that input streams are null terminated (C++ api yeah right!) 2013-07-06 15:52:39 -07:00
Shane Grant
5017efef4e C style arrays now exist in common.hpp, no longer need to do them for each archive type 2013-07-06 13:49:04 -07:00
Shane Grant
882415127b testing pointers and polymorphism with xml, looks godo 2013-07-04 23:17:03 -07:00
Shane Grant
b8d6bc2a3b Fixed small bug with xml output for unique_ptr, uint8_t was being serialized as a character, now serialized as a number 2013-07-04 18:13:40 -07:00
Shane Grant
cb6e04c8a6 NVP + traits changes
Added more NVP info to types that need it

Adding ability to detect a save function (member or non-member) that is incorrectly declared as non-const.  This is
needed since some nasty compilation errors crop up if you explicitly specify a serialization type and register that type
with an incorrectly constified save function.

So not done yet, but soon in: using a non const save function will trigger a static assertion.

Still need to investigate registering types with explicit disambiguation
2013-07-04 17:33:13 -07:00
Shane Grant
8d2bdbf5db cleaning up code, renamed detail in memory to memory_detail 2013-07-04 13:12:32 -07:00
Randolph Voorhies
d24c0e2db2 Added a MapItem to wrap key/value pairs 2013-07-03 20:05:34 -07:00
Randolph Voorhies
2dcf50a57f Added make_nvp<Archive> to elide unnecessary names 2013-07-03 18:57:42 -07:00
Shane Grant
27d81b4eb1 xml working 100% assuming no weird bugs 2013-07-03 15:53:59 -07:00
Shane Grant
c2d2e2d142 renamed CEREAL_ARCHIVE_RESTRICT_SERIALIZE to CEREAL_ARCHIVE_RESTRICT, more progress on xml serializtion 2013-07-03 14:00:31 -07:00
Shane Grant
5cecbdf08f working on input xml 2013-07-03 12:08:47 -07:00
Shane Grant
002b1ceeb1 adding size_tag wrappers, XML output looking good 2013-07-03 11:17:47 -07:00
Shane Grant
ebf83956e5 workign on xml 2013-07-02 15:14:07 -07:00
Shane Grant
58e707a40e Working on prologue/epilogue for xml 2013-07-02 15:05:25 -07:00
Shane Grant
6e7c922623 playing with xml implementation
XML is based off of rapidxml

NVPs can no longer be made to NVPs (can't directly nest them)
2013-07-02 13:37:21 -07:00
Randolph Voorhies
adcc87cc1f Added base_class to complement virtual_base_class 2013-07-01 16:12:43 -07:00
Shane Grant
196023c4ce tidying up 2013-06-28 11:39:34 -07:00
Shane Grant
e1fe25b66f Added a way to disambiguate serialization in cases where cereal can't figure it out on its own thanks to C++. In
access.hpp, there is now a struct called specialize which can be specialized to explicitly specify what type of
serialization a class will need.  This is mostly useful for derived classes that switch from one method of serialization
(that is member/non-member serialize vs load/split).
2013-06-25 14:51:43 -07:00
Shane Grant
514b08a2a0 sandbox playbox 2013-06-21 16:12:32 -07:00
Shane Grant
56f0561bd7 breaking out access and base_class into their own headers 2013-06-21 12:11:01 -07:00
Shane Grant
ad513228f1 Moving common serialization routines into common 2013-06-20 13:27:41 -07:00
Shane Grant
d5579d696d modifying tests for new file layout 2013-06-20 11:14:33 -07:00
Randolph Voorhies
24ad0341ad Added binary enum serialization 2013-06-19 17:56:30 -07:00
Randolph Voorhies
d82ecd7b63 Fixing static_assert messages 2013-06-19 17:04:32 -07:00
Randolph Voorhies
a09841ad4d Nicer function call operator on Archives (not &) 2013-06-18 18:10:12 -07:00
Shane Grant
1b8dbfb96a Non default constructors now supported by pointers 2013-06-18 16:16:24 -07:00
Randolph Voorhies
5c3c162fd1 Added cereal::access for private members 2013-06-17 17:57:36 -07:00
Randolph Voorhies
3201b05336 Added a cereal::Exception 2013-06-17 16:28:17 -07:00
Randolph Voorhies
18676e251f Restructuring 2013-06-17 16:17:20 -07:00