Nobuyuki Kubota
93142323f0
Merge pull request #349 from redboltz/variant
...
Variant
2015-09-04 18:42:47 +09:00
Takatoshi Kondo
be0f8c280a
Fixed warnings on build with CMAKE_BUILD_TYPE=Release.
...
Added stream outputs to suppress warnings and to help understanding.
2015-09-01 11:06:29 +09:00
Takatoshi Kondo
88ab7b6349
Unified variant and variant_ref to basic_variant.
...
Added is_* and as_* member functions to basic_variant.
Added tests.
2015-08-30 17:05:04 +09:00
Takatoshi Kondo
0609347d82
Fixed typo.
...
Removed function stype casts for strings.
2015-08-30 12:28:53 +09:00
Takatoshi Kondo
95e0fc5cef
Merge pull request #344 from n1tehawk/contrib
...
refactor example/c/lib_buffer_unpack.c
2015-08-26 16:14:23 +09:00
NiteHawk
720c18bcf8
add missing msgpack_unpacker_free(), and a "clean" assertion avoiding side effects
2015-08-18 12:24:16 +02:00
Takatoshi Kondo
23a040f2e5
Fixed std::map::erase is ambiguous problem in osx, clang, libc++ combination.
2015-08-18 18:15:10 +09:00
Takatoshi Kondo
cd9d6c5940
Added msgpack::type::variant and msgpack::type::variant_ref that is based on boost::variant.
...
You can convert to those types from any msgpack objects.
2015-08-18 17:47:27 +09:00
Takatoshi Kondo
8cae20ffc4
-std=c++11 and -std=c++03 flags shouldn't be given in indivitual CMakeLists.txt.
...
cpp03 examples should be compiled both -std=c++03 and -std=c++11.
2015-08-18 13:52:02 +09:00
NiteHawk
1788d6ce01
amend pull request ( #344 ) following the related discussion
...
There's a small problem remaining if assertions are disabled (with -DNDEBUG).
2015-08-17 21:49:03 +02:00
NiteHawk
871a796037
fix: remove unused variable introduced by previous commit
2015-08-17 16:23:11 +02:00
NiteHawk
4e65bc35ed
refactor example/c/lib_buffer_unpack.c
...
The example has some duplicated code that somewhat distracts from
the main processing loop. I think placing this into a separate
function improves readability of the code.
2015-08-17 15:59:19 +02:00
Takatoshi Kondo
8eadc04d37
Merge remote-tracking branch 'boltz/msvc2015_cpp11' into jonitis-feature_vs2015_support
2015-08-14 21:29:31 +09:00
Takatoshi Kondo
11f2f333c6
Supported C++11 mode on MSVC2015.
2015-08-14 17:02:43 +09:00
Takatoshi Kondo
5da1abb1ce
Added byte stream dump.
2015-08-13 13:23:23 +09:00
Takatoshi Kondo
efc27e8eb4
Fixed the bug that map examples don't use MSGPACK_DEFINE_MAP.
...
Removed MSGPACK_USE_BOOST requirement from map based serialization.
2015-08-13 13:23:09 +09:00
Takatoshi Kondo
12b5a6235a
Added examples to cmake building process.
...
Set /WX flas that is warnings as errors on MSVC build.
Updated linux, osx, msvc build to refer to appropriate boost libraries.
2015-08-12 17:49:33 +09:00
Takatoshi Kondo
4b2b3a18df
Added Boost.Preprocessor as a submodule.
...
Replaced boost/ with msgpack/ and BOOST with MSGPACK in Boost.Preprocessor files.
Renamed existing macron in versioning.hpp to avoid confict with MSGPACK_PP_*.
Removed MSGPACK_USE_BOOST requirement from MSGPACK_DEFINE_MAP.
2015-08-11 16:32:24 +09:00
Takatoshi Kondo
fa7f840427
Added map based packing and converting example.
2015-07-07 09:55:45 +09:00
Takatoshi Kondo
f1504d851a
Added an example of the non default constructible class.
...
Refined an intrusive example. It includes base class serialization. We can switch map based and array based serialization.
2015-07-06 16:01:36 +09:00
Takatoshi Kondo
721700bfe5
Added the new protocol example.
2015-04-06 10:30:43 +09:00
Takatoshi Kondo
35483b95ae
Refined examples.
2015-04-02 18:24:19 +09:00
Takatoshi Kondo
a2c8154960
Updated examples to support new packing/converting mechanism.
2015-04-02 18:24:10 +09:00
tbeu
8921f9dcfc
Do not interleave code and declarations in C files
...
Avoid C99 style to interleave code and declarations in order to compile msgpackc with Visual Studion < 2013
2015-03-26 21:48:03 +01:00
Takatoshi Kondo
3662a17e81
Merge pull request #212 from redboltz/add_zone_reuse_example
...
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:52:09 +09:00
Takatoshi Kondo
9ed4e443fb
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:20:34 +09:00
Takatoshi Kondo
15aec0493d
Added a C++11 container example.
2015-02-03 20:40:44 +09:00
Takatoshi Kondo
83fac26762
Added enum examples.
...
Added converting to zone with or without zone.
2015-02-01 22:10:13 +09:00
Takatoshi Kondo
213ba44b65
Added copylight text.
...
Refined examples.
2015-02-01 21:35:48 +09:00
Nobuyuki Kubota
7eb3d2aa59
Change the type of the return value to a const reference
2014-11-15 17:41:43 -08:00
Takatoshi Kondo
e00b299fe0
Refined the non-intrusive example. The target class no longer needs public data members.
2014-11-01 22:42:36 +09:00
Takatoshi Kondo
79e7a9810c
Moved examples.
...
Added intrusive and non-intrusive versions of packing and unpacking examples.
2014-11-01 18:13:52 +09:00
Takatoshi Kondo
111efdf50f
Fixed return type.
2014-11-01 13:18:17 +09:00
Takatoshi Kondo
1f5d6b9cac
Added EXT support.
...
Removed obsolete unpack functions.
Updated examples that no longer use obsolete functions.
Added reference checking function to unpacked. ( unpacked::referenced() )
Added std:: namespace.
Added reference or copy choice function and default behavior:
When you use unpacker, default behavior is:
STR, BIN, EXT types are always held by reference.
When you don't use unpacker, default behavior is:
STR, BIN, EXT types are always held by copy.
The memory is allocated from zone.
You can customize the behavior passing your custom judging function to unpack() or unpacker's constructor.
2014-08-06 16:18:37 +09:00
Takatoshi Kondo
0380215982
Fixed https://github.com/msgpack/msgpack-c/issues/88
...
Added examples for the following updated functions:
msgpack_unpack_return msgpack_unpacker_next(msgpack_unpacker* mpac, msgpack_unpacked* result);
msgpack_unpack_return
msgpack_unpack_next(msgpack_unpacked* result,
const char* data, size_t len, size_t* off);
2014-07-13 09:35:58 +09:00
Takatoshi Kondo
cc571b8bb1
Replaced std::auto_ptr with msgpack::unique_ptr.
2014-07-12 00:21:35 +09:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
d70c44b723
Added bin and str families support.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
f187ae35d9
Added a nested array example.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
74013e7e7d
Added array of array example.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
fade0644c7
Added comments that how to compile and run it.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
4ef69da25d
Restored the test cases using pointer based interfaces.
...
It assures that we can use the same interfaces as the original version(0.5.6).
To support both C++03 and C++11, I introduced msgpack::unique_ptr and msgpack::move() in test codes.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
27629a8dd6
Modified 'unpacked' interface using references instead of pointers.
...
Added speed test for 'unpacked' based unpack() function.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
bad3801eae
Modified zone* to zone&.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
56b0ad6809
Modified passed by value of object to const reference of object.
...
Modified object pointers to object references.
This modification has increased unpack speed.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
f8561fbfd5
Added map packing speed test.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
e0d1e5c722
Modified tuple's get calling from member function to free function.
2014-07-07 16:16:29 +09:00
Nobuyuki Kubota
28370b36aa
Replaced deprecated functions in example/stream.cc
2014-02-07 20:16:51 +09:00
Takatoshi Kondo
cb4d851761
Fixed size types based on snej's pull request.
...
1784e7a3f3
2013-12-22 15:13:48 +00:00
Takatoshi Kondo
229467cb29
Added a test and speed test examples for #37 .
2013-12-08 10:39:13 +00:00