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

A CodecEncoder is a class that supports operations for encoding a Variant into a destination codec format.

Given:

  • encoder: an CodecEncoder instance
  • variant: a reference to a const wamp::Variant
  • output: a reference to either a std::string, a wamp::CodecBuffer, or a std::ostream

then the following expressions must be valid:

Expression Effect
encoder.encode(variant, output) Encodes the variant into the given output.

The following classes meet the requirements of Encoder: