Re:Re: [protobuf] Is any method available to convert a protobuf object to XML?

2011-06-23 Thread jianhua
Thanks Gravell's support on this issue. In terms of the difficulities, we try to use another solution, use protobuf to produce C++ object, then convert C++ object to XML by serialization moudle on boost library. At 2011-06-22 13:25:16,Marc Gravell marc.grav...@gmail.com wrote: There's no

[protobuf] Re: Self describing messages

2011-06-23 Thread slookin
Thanks Jason, It is all my code (link to real java class - http://test.look-in.net/pf/pf.zip. Could you give me links with examples or explain why i should serializes the FileDescriptorSet? On Jun 22, 8:35 pm, Jason Hsueh jas...@google.com wrote: On Wed, Jun 22, 2011 at 3:30 AM, slookin

[protobuf] Re: Issue 305 in protobuf: CodedInputStream constructors missing.

2011-06-23 Thread protobuf
Comment #1 on issue 305 by roxsan.p...@videotron.ca: CodedInputStream constructors missing. http://code.google.com/p/protobuf/issues/detail?id=305 Close this issue, the constructor has been inlined in the .h - makefile error including previous version ... -- You received this message

Re: [protobuf] Re: Self describing messages

2011-06-23 Thread Jason Hsueh
Oh, I missed that you were reading the FileDescriptorSet from a separate file, not the same stream. This isn't exactly self describing since when you transmit the message you assume the recipient knows what type the message is, and has access to the FileDescriptorSet. See

[protobuf]

2011-06-23 Thread Enrico Viappiani
I've installed protobuf 2.4.1 on ubuntu, running configure,make, make check and make install, and everything seems fine. Then I've tried to compile the examples code in the packet, make cpp , I've obtained the .cc and .h from the .proto file. In Eclipse CDT, I've imported those 2 files, along with

[protobuf] Read multiple protobufs from single file

2011-06-23 Thread mjs483
Hi, Is there any way to read a protobuf from a file input stream without consuming the entire file? Say for example if the file contains more than just one protobuf? I'd like to archive a stream of protobufs to a file for later analysis by simply writing them one after another to a single file

Re: [protobuf] Read multiple protobufs from single file

2011-06-23 Thread Jason Hsueh
There's not enough information: see http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming On Thu, Jun 23, 2011 at 8:55 AM, mjs483 matt.shi...@gmail.com wrote: Hi, Is there any way to read a protobuf from a file input stream without consuming the entire file? Say for

[protobuf] Re: Read multiple protobufs from single file

2011-06-23 Thread mjs483
Kind of what I suspected. Alright, thanks! On Jun 23, 12:41 pm, Jason Hsueh jas...@google.com wrote: There's not enough information: seehttp://code.google.com/apis/protocolbuffers/docs/techniques.html#stre... On Thu, Jun 23, 2011 at 8:55 AM, mjs483 matt.shi...@gmail.com wrote: Hi,

Re: [protobuf]

2011-06-23 Thread Enrico Viappiani
I've tried to build the project manually with the example makefile, the 2 executables works well. I believe that the linking option that makes the correct linking is `pkg-config --cflags --libs protobuf`.. now the question is.. how can i put them into Eclipse? but it's not a protobuf question