Hi,

I was wondering if there is a tool that can generate the Protocol
Buffers descriptor file from an existing C or C++ struct or class
declaration.

Also, I am looking for a tool that can generate C/C++ source code that
automatically populate data bi-directionally.  For example, given the
C struct:

struct my_struct_t {
  int a;
  double b;
  ...
};
...
my_struct_t raw_data;
MyStruct pb_data = ...

// Generated code begins...
if (!pb_data.has_a()) raw_data.a = pb_data.a();
if (!pb_data.has_b()) raw_data.b = pb_data.b();
...
// End of generated code

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to