Beast Logo

PrevUpHomeNext

Body requirements

A Body type is supplied as a template argument to the message class. It controls both the type of the data member of the resulting message object, and the algorithms used during parsing and serialization.

In this table:

Table 3. Body requirements

operation

type

semantics, pre/post-conditions

X::value_type

The type of the message::body member. If this is not movable or not copyable, the containing message will be not movable or not copyable.

Body::reader

If present, a type meeting the requirements of Reader. Provides an implementation to parse the body.

Body::writer

If present, a type meeting the requirements of Writer. Provides an implementation to serialize the body.



PrevUpHomeNext