[protobuf] Re: using the new plugin infrastructure

2010-07-08 Thread marcmo
thanks kenton! that was my missing piece! kind of long but it works: protoc --cpp_out=out --simplePlugin_out=out --plugin=protoc-gen- simplePlugin=./protoc-gen-simplePlugin simple.proto now that this works i can start thinking about maybe inserting some of my generated frameworkstuff into the file

Re: [protobuf] Re: using the new plugin infrastructure

2010-07-07 Thread Kenton Varda
For C++, to determine the output name, just replace ".proto" with ".pb.h" or ".pb.cc". You have to make sure that you run the C++ code generator at the same time as your plugin. --cpp_out must appear first on the command line, e.g.: # CORRECT protoc --cpp_out=outdir --myplugin_out=outdir #

[protobuf] Re: using the new plugin infrastructure

2010-07-05 Thread marcmo
jason, thanks for the response. for the stuff that i needed i found everything and the plugin stuff works great (i use it to generate a custom rpc implementation of the lite version that is suited for our embedded environment) insertion points where not needed so i almost forgot about that. today a

Re: [protobuf] Re: using the new plugin infrastructure

2010-06-30 Thread Jason Hsueh
Yes, you can write the plug-in in the language of your choice. On Wed, Jun 30, 2010 at 7:08 AM, qrilka wrote: > Is it possible to use other languages? > E.g. python? > > Kind regards, > Kirill Zaborsky > > On 2 июн, 20:25, Jason Hsueh wrote: > > Does the test plugin help? There is a test code g

[protobuf] Re: using the new plugin infrastructure

2010-06-30 Thread qrilka
Is it possible to use other languages? E.g. python? Kind regards, Kirill Zaborsky On 2 июн, 20:25, Jason Hsueh wrote: > Does the test plugin help? There is a test code generator that is used in > the unittest for > command_line_interface.cc:http://code.google.com/p/protobuf/source/browse/trunk/