CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_CBOR_HPP
8 #define CPPWAMP_CBOR_HPP
38 template <
typename O,
typename C = OutputCategoryTypeOf<O>>
43 using OutputCategory = C;
57 std::unique_ptr<Impl> impl_;
89 std::unique_ptr<Impl> impl_;
113 template <
typename I,
typename C = InputCategoryTypeOf<I>>
118 using InputCategory = C;
127 CPPWAMP_NODISCARD std::error_code
decode(
const Input& input,
132 std::unique_ptr<Impl> impl_;
145 template <
typename I>
159 CPPWAMP_NODISCARD std::error_code
decode(Input& input,
Variant& variant);
163 std::unique_ptr<Impl> impl_;
181 template <
typename TOutput,
185 template <
typename TInput,
190 static constexpr
int id() {
return KnownCodecIds::cbor();}
195 #ifndef CPPWAMP_COMPILED_LIB
196 #include "internal/cbor.ipp"
199 #endif // CPPWAMP_CBOR_HPP
CBOR decoder.
Definition: cbor.hpp:114
Output category for output streams of bytes.
Definition: codec.hpp:50
Discriminated union container that represents a JSON value.
Definition: variant.hpp:134
Defines macros related to exporting/importing APIs.
void encode(const Variant &variant, TOutput &&output)
Encodes the given variant to the given byte container or stream.
Definition: codec.hpp:103
Definition: anyhandler.hpp:36
CBOR format tag type.
Definition: cbor.hpp:179
CBOR encoder.
Definition: cbor.hpp:39
typename OutputCategory< ValueTypeOf< O > >::type OutputCategoryTypeOf
Yields the category type that best matches the given output type.
Definition: codec.hpp:79
typename InputCategory< ValueTypeOf< I > >::type InputCategoryTypeOf
Yields the category type that best matches the given input type.
Definition: codec.hpp:148
static constexpr int id()
Obtains a numeric identifier associated with this codec.
Definition: cbor.hpp:190
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.