I'm going to pass GPB objects over the wire but in the local application I need to save them locally in XML (customer demands XML, no editing tool, don't ask me why) so the customer can edit the XML (which brings me to the other part of my question - parsing GPB from XML). Is anyone aware of a framework which does this? I need this code in C++ on Windows.
There is no C++ implementaion for this as far as I am aware. You can port this code from Java http://code.google.com/p/protostuff/ if you want we can port it togeather I also need the same as you!
One of the problems is that pb are not self describing so you need to whole the schema outside which is not ideal.
The documentaion on reflections which onbody uses inside of Google is a little confusing for me. http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.message.html#Message.
Also see here Show all elements in a protocol buffer message
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With