apigear-io / objectlink-core-cpp

A object link protocol for C++ 14
MIT License
0 stars 3 forks source link

Dphan/extracting protocol format #42

Open dorotaphanSiili opened 8 months ago

dorotaphanSiili commented 8 months ago

Intorduces new structures instead of nlohmann::json OLinkContent - to pass arguments or values - appears in the interface of sinks, sources, and nodes and OLinkMessage - used internally

Also introduces IMessageSerializer which can be set to serialize and deserialize message, adds default serializer for nlohmann json. It is set with a write function to a nodes. Introduces OLinkContent serializer functions in separate namespace, the idea is that in case of using custom serializer, user writes all the functions in the new namespace and uses sub-namespace and same structures, to change in code for different serializer the alias for namespace needs to be changed.

TODO

Closes #

📑 Description

✅ Checks

ℹ Additional Information