encoder Class Reference

**Experimental** - Stream-like encoder from AMQP bytes to C++ values. More...

#include <encoder.hpp>

Inheritance diagram for encoder:

List of all members.

Public Member Functions

 encoder (const data &d)
 Wrap Proton-C data object.
 encoder (internal::value_base &v)
 Encoder into v. Clears any current value in v.
bool encode (char *buffer, size_t &size)
 Encode the current values into buffer and update size to reflect the number of bytes encoded.
void encode (std::string &)
 Encode the current values into a std::string and resize the string if necessary.
std::string encode ()
 Encode the current values into a std::string.
encoderoperator<< (const internal::value_base &)
 Insert a proton::value.
encoderoperator<< (const start &)
 Start a complex type.
encoderoperator<< (const finish &)
 Finish a complex type.
Insert built-in types



encoderoperator<< (bool)
encoderoperator<< (uint8_t)
encoderoperator<< (int8_t)
encoderoperator<< (uint16_t)
encoderoperator<< (int16_t)
encoderoperator<< (uint32_t)
encoderoperator<< (int32_t)
encoderoperator<< (wchar_t)
encoderoperator<< (uint64_t)
encoderoperator<< (int64_t)
encoderoperator<< (timestamp)
encoderoperator<< (float)
encoderoperator<< (double)
encoderoperator<< (decimal32)
encoderoperator<< (decimal64)
encoderoperator<< (decimal128)
encoderoperator<< (const uuid &)
encoderoperator<< (const std::string &)
encoderoperator<< (const symbol &)
encoderoperator<< (const binary &)
encoderoperator<< (const internal::scalar_base &)
encoderoperator<< (const null &)

Detailed Description

**Experimental** - Stream-like encoder from AMQP bytes to C++ values.

For internal use only.

See also:
types_page for the recommended ways to manage AMQP data

Member Function Documentation

std::string encode (  ) 

Encode the current values into a std::string.

Clears the encoder.

void encode ( std::string &   ) 

Encode the current values into a std::string and resize the string if necessary.

Clears the encoder.

bool encode ( char *  buffer,
size_t &  size 
)

Encode the current values into buffer and update size to reflect the number of bytes encoded.

Clears the encoder.

Returns:
if buffer == 0 or size is too small, then return false and size to the required size. Otherwise, return true and set size to the number of bytes encoded.

The documentation for this class was generated from the following file:

Generated on 27 Jan 2017 for Qpid Proton C++ by  doxygen 1.6.1