Hi Jos, Having working on using protocol buffers in Eiffel, I have been thinking about the same things. At the end I've decided that it would be a lot of work for me to try to develop a compiler for protocol buffers that will give me native Eiffel classes. Wrapping C++ objects in Eiffel worked fine, but in that case, I'd have to write error prone code every time I introduce something new to my procol buffer descriptions, so I've adopted for a solution in the middle. I've generated descriptor files using protoc.exe, and I've written a small piece of Java code that uses the descriptor file that generates Eiffel classes which wrap C++ objects. At the moment, it is at its beginning phase, so I may hit a serious problem, but so far, I consider this to be a good solution for the amount of work I've put into it. If you have more time, I'm sure having a proper implementation like the one you mentioned would be better than what I'm doing. Still, I though you may consider this approach for your own case.
Kind regards Seref On Thu, Mar 17, 2011 at 7:38 PM, Jos Kuijpers <[email protected]> wrote: > Hi All, > > Firstly, I want to thank for the protobuf library, I think it is great. > > I want to use it for my server-client setup. Both are written in > objective-c. I though that writing a compiler for proto to ObjC would be a > better idea than writing classes that wrap C++ code into ObjC classes. > > I have setup my environment, but now I got stuck. There is just few > documentation about writing plugins. Where do I get info? How do I encode > it? How should I handle stuff? Can someone clarify this, make a wiki item on > it? (On the actual _writing_ of a plugin). It is not as simple as it is > supposed to be. > > > With kind regards, > > Jos > > -- > 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. > -- 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.
