On Jan 11, 2017 2:04 PM, "Morten Nielsen" <mn at iter.dk> wrote:
This idea might be valuable or not, but in my day-to-day work we also have a C-SDK, and all its public methods are heavily documented and tagged. We then use a combination of Doxygen and Python scripts to auto-generate higher-level OO classes for use by Objective C, Android/Java, .NET and QT/C++. This has worked really well for us across all the platforms once these scripts were solidified. It ensures all platforms have the same API, but the code-generator can adapt and tweak the APIs to make them feel/look more native to the platform. This was naturally a big investment setting up, but it has paid itself back many times over since. It also means adding another language/platform was very easy, as it was mainly just a matter of updating the code-generator. We also don?t even have to worry about the higher-level classes getting out of sync with the C-SDK. I hereby authorize you to make this happen here! ;) doxygen: +1. the rest sounds good, but how do you go from c to oo? you must have organized your c code very carefully with that in mind, no? can you share any code? gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170111/9535e524/attachment.html>
