Solution: extract into separate class curve_encoding_t
Attach a file by drag & drop or click to upload