Re: [protobuf] c++: Print contents of a serialized file using its descriptor file

2010-04-02 Thread Jason Hsueh
On Fri, Apr 2, 2010 at 9:13 AM, Navin wrote: > 1. For the person example, I create a descriptor as follows: > "E:\Desktop\prototype_MAIN\protoc.exe" person.proto -- > descriptor_set_out=msg.protocomp > > 2. I create a Person object and serialized it to file. "person.pb" > > 3. I want to write a p

[protobuf] c++: Print contents of a serialized file using its descriptor file

2010-04-02 Thread Navin
1. For the person example, I create a descriptor as follows: "E:\Desktop\prototype_MAIN\protoc.exe" person.proto -- descriptor_set_out=msg.protocomp 2. I create a Person object and serialized it to file. "person.pb" 3. I want to write a program to "print" the Person object using ONLY its descript