Takatoshi Kondo
3c271892e3
Fixed #399
...
If MSGPACK_DISABLE_LEGACY_CONVERT is defined, msgpack::object::convert(T*) is removed.
Added MSGPACK_DISABLE_LEGACY_CONVERT to build system and documents.
Please define MSGPACK_DISABLE_LEGACY_CONVERT and update your code as follows:
Replace
int i;
obj.convert(&i); // Removed pointer version
with
int i;
obj.convert(i); // Reference version
2016-01-21 22:28:53 +09:00
Takatoshi Kondo
8bf2f33782
Added unpack, pack, object, and object_handle documentation.
2016-01-18 21:49:28 +09:00
Takatoshi Kondo
ba15089d86
Version 1.3.0.
...
Updated the license from the license from the Apache License Version 2.0
to the Boost Software License, Version 1.0.
Removed unused files.
2015-11-21 12:41:46 +09:00
Takatoshi Kondo
dc2e1a4ead
Fixed indent style.
2015-08-31 16:45:01 +09:00
Takatoshi Kondo
33de24239a
Fixed #357 .
...
Added a conversion member function to msgpack::object.
If msgpack::object is nil then returns false else returns true and sets a value.
2015-08-31 09:05:09 +09:00
Takatoshi Kondo
a1ca382b2d
Added msgpack:: qualifier.
2015-08-14 23:31:51 +09:00
Takatoshi Kondo
a37e7232c7
Merge pull request #305 from redboltz/add_boost_fusion
...
Added Boost.Fusion support.
2015-07-05 10:34:06 +09:00
Takatoshi Kondo
b559187a7e
Merge pull request #302 from redboltz/add_no_defcon_support
...
Added no default constructible classes support.
2015-07-05 10:32:54 +09:00
Takatoshi Kondo
57ba93a2b2
Added Boost.Fusion support.
...
Fusion sequences can be serialized.
2015-07-01 15:07:45 +09:00
Takatoshi Kondo
45b57c292c
Added no default constructible classes support.
2015-06-18 16:15:20 +09:00
Takatoshi Kondo
860a5ae06e
Added JSON escape for values between 0x00 and 0x1f, and 0x7f.
2015-06-18 14:01:51 +09:00
Takatoshi Kondo
d6c5682ef5
Merge pull request #288 from redboltz/work/add_deep_copy
...
Added a clone function for msgpack::object.
2015-06-01 17:45:46 +09:00
Takatoshi Kondo
de721af166
Updated: msgpack::unpacked is the typedef of the msgpack::object_handle now.
...
See the following discussion:
https://github.com/msgpack/msgpack-c/pull/288
2015-05-31 20:40:05 +09:00
Takatoshi Kondo
b225f15f29
Merge branch 'master' of https://github.com/davidchappelle/msgpack-c into davidchappelle-master
2015-05-27 21:18:33 +09:00
Takatoshi Kondo
f75da23e1d
Separated unpacked from object_handle to preserve the original ABI.
2015-05-26 09:53:55 +09:00
Takatoshi Kondo
9e18ac5d2d
Reverted msgpack::move() on the C++03. Const-correntness isn't broken now.
...
Implemented msgpack::object_handle using the same design pattern as std::auto_ptr and std::auto_ptr_ref.
Minimized the uses of #if defined(MSGPACK_USE_CPP03) conditional macro.
2015-05-22 09:21:58 +09:00
Takatoshi Kondo
e18f5b2d52
Added a clone function for msgpack::object.
...
The function prepares zone's chunk that has minimal size to deep copy.
2015-05-21 14:44:40 +09:00
Takatoshi Kondo
e979f04d75
Replaced const msgpack::object with const msgpack::object&.
2015-05-20 12:49:56 +09:00
David Chappelle
9d4da1ad2e
Object conversions return the specific type that was converted.
...
This allows us to easily make function calls that have parameters that are dependent
upon converting from msgpack objects to concrete types. For example:
void process_args(std::tuple<int,std::string>& args)
{
...
}
process_args(obj.convert(std::make_tuple(100,"hello")))
You can get similar behavior by using obj.as<...>() but its performance is highly
dependent upon the specific compiler and whether or not r-value references are
supported.
2015-05-15 16:21:54 -04:00
Takatoshi Kondo
993d007c4b
Changed the type of msgpack::object str index from int to uint32_t.
2015-04-23 08:33:08 +09:00
Takatoshi Kondo
92a7f3f794
Fixed #273
...
msgpack::object stream outputs became JSON format.
2015-04-22 14:59:02 +09:00
Takatoshi Kondo
904dd65965
Merge branch 'fix_doxygen_support' of https://github.com/redboltz/msgpack-c into redboltz-fix_doxygen_support
...
# Conflicts:
# erb/cpp03_define.hpp.erb
# erb/cpp03_msgpack_tuple.hpp.erb
# erb/cpp03_msgpack_tuple_fwd.hpp.erb
# include/msgpack/adaptor/bool_fwd.hpp
# include/msgpack/adaptor/char_ptr_fwd.hpp
# include/msgpack/adaptor/cpp11/array.hpp
# include/msgpack/adaptor/cpp11/array_char.hpp
# include/msgpack/adaptor/cpp11/array_char_fwd.hpp
# include/msgpack/adaptor/cpp11/array_fwd.hpp
# include/msgpack/adaptor/cpp11/forward_list.hpp
# include/msgpack/adaptor/cpp11/forward_list_fwd.hpp
# include/msgpack/adaptor/cpp11/tuple_fwd.hpp
# include/msgpack/adaptor/cpp11/unordered_map.hpp
# include/msgpack/adaptor/cpp11/unordered_map_fwd.hpp
# include/msgpack/adaptor/cpp11/unordered_set.hpp
# include/msgpack/adaptor/cpp11/unordered_set_fwd.hpp
# include/msgpack/adaptor/deque_fwd.hpp
# include/msgpack/adaptor/detail/cpp03_define.hpp
# include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp
# include/msgpack/adaptor/detail/cpp03_msgpack_tuple_fwd.hpp
# include/msgpack/adaptor/detail/cpp11_define.hpp
# include/msgpack/adaptor/detail/cpp11_msgpack_tuple_fwd.hpp
# include/msgpack/adaptor/fixint_fwd.hpp
# include/msgpack/adaptor/float_fwd.hpp
# include/msgpack/adaptor/int_fwd.hpp
# include/msgpack/adaptor/list_fwd.hpp
# include/msgpack/adaptor/map_fwd.hpp
# include/msgpack/adaptor/nil.hpp
# include/msgpack/adaptor/nil_fwd.hpp
# include/msgpack/adaptor/pair_fwd.hpp
# include/msgpack/adaptor/raw.hpp
# include/msgpack/adaptor/raw_fwd.hpp
# include/msgpack/adaptor/set_fwd.hpp
# include/msgpack/adaptor/string_fwd.hpp
# include/msgpack/adaptor/tr1/unordered_map.hpp
# include/msgpack/adaptor/tr1/unordered_map_fwd.hpp
# include/msgpack/adaptor/tr1/unordered_set.hpp
# include/msgpack/adaptor/tr1/unordered_set_fwd.hpp
# include/msgpack/adaptor/vector.hpp
# include/msgpack/adaptor/vector_bool_fwd.hpp
# include/msgpack/adaptor/vector_char.hpp
# include/msgpack/adaptor/vector_char_fwd.hpp
# include/msgpack/adaptor/vector_fwd.hpp
2015-04-03 14:54:55 +09:00
Takatoshi Kondo
e8d3c8d6c5
Re-designed user types dispatching mechanism.
...
msgpakc-c 0.5.9 or older uses ADL.
msgpack-c 1.0.x uses overloading with header files ordering.
msgpack-c 1.1.x uses functor with class template specialization.
2015-04-02 18:23:37 +09:00
Takatoshi Kondo
ae5734e8d1
Recovered a minimal support for Doxygen.
...
Removed MSGPACK_API_VERSION_NAMESPACE(v1) from doxygen build.
It seems that Doxygen cannot parse a complicated macro such as MSGPACK_API_VERSION_NAMESPACE.
Added EXTRACT_ALL=YES to Doxyfle.
Added INPUT configuration variable that is point to include directory to Doxyfile.
2015-03-31 16:26:27 +09:00
Takatoshi Kondo
79a127a8b6
Moved serialize operator.
2015-03-10 21:14:20 +09:00
Nobuyuki Kubota
b0ff2802d2
Add msgpack prefix to type_errors
2015-03-10 20:59:34 +09:00
Nobuyuki Kubota
4b0c90fc90
Merge branch 'add_msgpack_prefix'
...
Conflicts:
include/msgpack/adaptor/char_ptr.hpp
include/msgpack/adaptor/cpp11/array.hpp
include/msgpack/adaptor/cpp11/array_char.hpp
include/msgpack/adaptor/cpp11/tuple.hpp
include/msgpack/adaptor/cpp11/unordered_map.hpp
include/msgpack/adaptor/cpp11/unordered_set.hpp
include/msgpack/adaptor/deque.hpp
include/msgpack/adaptor/list.hpp
include/msgpack/adaptor/map.hpp
include/msgpack/adaptor/set.hpp
include/msgpack/adaptor/string.hpp
include/msgpack/adaptor/tr1/unordered_map.hpp
include/msgpack/adaptor/tr1/unordered_set.hpp
include/msgpack/adaptor/vector.hpp
include/msgpack/adaptor/vector_char.hpp
include/msgpack/object.hpp
include/msgpack/unpack.hpp
2015-03-10 20:57:55 +09:00
Nobuyuki Kubota
8eaa2e9e74
Merge pull request #199 from redboltz/fix_issue_198
...
Fix issue 198
2015-03-10 19:31:09 +09:00
Nobuyuki Kubota
343ceabe9a
Fix msgpack_object to be passed by reference
2015-03-10 19:12:25 +09:00
Takatoshi Kondo
0d9a21ea08
Added msgpack prefix to packer.
2015-03-08 20:49:40 +09:00
Takatoshi Kondo
f399ec8c30
Added msgpack prefix to support API versioning.
2015-03-07 22:58:45 +09:00
Takatoshi Kondo
a4aa14d1e2
Added std prefix.
2015-03-04 22:50:47 +09:00
Takatoshi Kondo
64ac09c492
Fixed #198 .
...
Added a conversion support from msgpack::object to std::vector<bool>.
2015-01-25 21:59:39 +09:00
Takatoshi Kondo
737e6703df
Fixed #191 .
...
The names of float format family are changed.
old new
dec -> f64
MSGPACK_OBJECT_DOUBLE -> MSGPACK_OBJECT_FLOAT
msgpack::type::DOUBLE -> msgpack::type::FLOAT
Client codes could have compile errors when it use dec, MSGPACK_OBJECT_DOUBLE or msgpack::type::DOUBLE.
The best way to fix such errors, update client code. If it can't, set MSGPACK_USE_LEGACY_NAME_AS_FLOAT macro.
Then both old names and new names are available.
2015-01-16 00:20:43 +09:00
Dror Levin
b9a80697bc
Add missing break to prevent segfault
...
When printing objects with extension, falling through to type ARRAY may cause segmentation fault.
2015-01-01 15:15:47 +02:00
Takatoshi Kondo
9162610682
Added adaptors for the C++11 version of unordered containers.
...
(Fixed https://github.com/msgpack/msgpack-c/issues/168 )
2014-12-05 15:40:33 +09:00
Takatoshi Kondo
037b1c22dc
Fixed https://github.com/msgpack/msgpack-c/issues/144
...
This fix is ogirinally from https://github.com/msgpack/msgpack-c/pull/133
I removed raw support and added str, bin, and ext support.
2014-11-17 12:51:34 +09:00
Takatoshi Kondo
69b2ea4002
Added help comments for compile error.
2014-10-27 17:41:06 +09:00
Takatoshi Kondo
b5e66150e9
Minimized header files dependency.
...
Added help comments for typical compile error.
2014-10-19 21:18:30 +09:00
Takatoshi Kondo
db8578a62b
Separated adaptor functions' definitions and declarations.
2014-10-16 11:21:26 +09:00
Takatoshi Kondo
4c00f448aa
Added a minimal forward declaration header file for pack/unpack overloading.
2014-10-01 14:33:02 +09:00
Takatoshi Kondo
3ddeb08e6e
Added API versioning.
2014-10-12 23:21:25 +09:00
Takatoshi Kondo
68bf4acb4b
Fixed operator>>(object const& o, various types& v) return type and value problem.
...
https://github.com/msgpack/msgpack-c/issues/105
2014-08-29 00:43:18 +09:00
Takatoshi Kondo
f969f6f39c
Replaced zone* member variable in object with zone&.
...
Added msgpack::object::with_zone tests.
Added tuples operator<<'s parameter to const.
Fixed array object::with_zone pointer and size unset problem.
Fixed forward_list object::with_zone pointer and size unset problem.
2014-08-11 13:23:27 +09:00
Takatoshi Kondo
e217e72c22
Fixed msgpack::object type EXT comparison problem.
...
Added msgpack::object type EXT ostream minimal output.
2014-08-10 23:23:52 +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
Scott Prager
6fab3594a2
Add inline for ODR compliance.
2014-07-24 15:04:33 -04:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
bc33317b7e
Reorganized tree.
2014-07-07 16:31:29 +09:00