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