22 #ifndef DCCLFIELDCODEC20110510H
23 #define DCCLFIELDCODEC20110510H
25 #include "field_codec_typed.h"
33 template<
typename WireType,
typename FieldType = WireType>
38 virtual unsigned size() = 0;
41 unsigned size(
const WireType& wire_value)
virtual unsigned size()=0
The size of the encoded message in bits. Use TypedFieldCodec if the size depends on the data.
Dynamic Compact Control Language namespace.
Base class for static-typed field encoders/decoders that use a fixed number of bits on the wire regar...
unsigned max_size()
Calculate maximum size of the field in bits.
Base class for static-typed (no boost::any) field encoders/decoders. Most single-valued user defined ...
unsigned size(const WireType &wire_value)
Calculate the size (in bits) of a non-empty field.
unsigned min_size()
Calculate minimum size of the field in bits.