CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_MSGPACK_HPP
8 #define CPPWAMP_MSGPACK_HPP
37 template <
typename O,
typename C = OutputCategoryTypeOf<O>>
42 using OutputCategory = C;
56 std::unique_ptr<Impl> impl_;
88 std::unique_ptr<Impl> impl_;
112 template <
typename I,
typename C = InputCategoryTypeOf<I>>
117 using InputCategory = C;
126 CPPWAMP_NODISCARD std::error_code
decode(
const Input& input,
131 std::unique_ptr<Impl> impl_;
144 template <
typename I>
158 CPPWAMP_NODISCARD std::error_code
decode(Input& input,
Variant& variant);
162 std::unique_ptr<Impl> impl_;
180 template <
typename TOutput,
184 template <
typename TInput,
189 static constexpr
int id() {
return KnownCodecIds::msgpack();}
194 #ifndef CPPWAMP_COMPILED_LIB
195 #include "internal/msgpack.ipp"
198 #endif // CPPWAMP_MSGPACK_HPP
Output category for output streams of bytes.
Definition: codec.hpp:50
Discriminated union container that represents a JSON value.
Definition: variant.hpp:134
Msgpack format tag type.
Definition: msgpack.hpp:178
Defines macros related to exporting/importing APIs.
static constexpr int id()
Obtains a numeric identifier associated with this codec.
Definition: msgpack.hpp:189
void encode(const Variant &variant, TOutput &&output)
Encodes the given variant to the given byte container or stream.
Definition: codec.hpp:103
Msgpack encoder.
Definition: msgpack.hpp:38
Definition: anyhandler.hpp:36
typename OutputCategory< ValueTypeOf< O > >::type OutputCategoryTypeOf
Yields the category type that best matches the given output type.
Definition: codec.hpp:79
Decoder specialization for Msgpack.
Definition: msgpack.hpp:113
typename InputCategory< ValueTypeOf< I > >::type InputCategoryTypeOf
Yields the category type that best matches the given input type.
Definition: codec.hpp:148
Contains the declaration of Variant and other closely related types/functions.
std::error_code decode(TInput &&input, Variant &variant)
Decodes from the given byte sequence or stream to the given variant.
Definition: codec.hpp:172
Contains essential definitions for wamp::Variant codecs.