CppWAMP
C++11 client library for the WAMP protocol
CodecDecoder

A CodecDecoder is a class that supports operations for decoding a sequence of bytes in a codec format into a wamp::Variant.

Given:

  • decoder: a CodecDecoder instance
  • variant: a reference to a wamp::Variant
  • input: a reference to either a const std::string, a const wamp::CodecBuffer, or a std::istream

then the following expressions must be valid:

Expression Effect
decoder.decode(input, variant) Decodes the input into the given variant, returning a std::error_code.

The following classes meet the requirements of Decoder: