gnuradio / pmt

pmt
GNU Lesser General Public License v3.0
11 stars 11 forks source link

Reorganize Serialization Code #103

Open jsallay opened 1 year ago

jsallay commented 1 year ago

The serialization code is kind of messy and not extensible. We already have an additional case for base64 encoding. It would be really nice to additionally convert to/from other formats such as json and yaml.

I think we should try to define an interface where a user needs to define a class with a few functions for serialization and deserialization. When serializing, the class to use would be a template parameter. This would make it easy to switch between different formats.