Re: [protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2010-07-16 Thread Marc Gravell
From the message, that *sounds* like protobuf-net... There is no built-in handling of this, but it is possibly something that could be added, especially in v2 which has a much more flexible model. For example, you *could* argue that there is an implicit schema that uses a repeated element per

[protobuf] C++ syntax: how to set a singular enum field

2010-07-16 Thread mark.t.macdon...@googlemail.com
I have the following message: message device { enum Retraction { HOUSED = 0; EXTENDED = 1; } optional Retraction retraction = 1; } How do I fix my syntax to set the retraction field (below)? int main() { device dev; if (stabiliser.retraction()==RR_system::HOUSED) coutTrue\n;

[protobuf] Re: C++ syntax: how to set a singular enum field

2010-07-16 Thread mark.t.macdon...@googlemail.com
There was a typo in my original question. Should read: int main() { device dev; //this works if (stabiliser.retraction()==device::HOUSED) coutTrue\n; //but this doesn't compile stabiliser.set_retraction(device::RETRACTED); } -- You received this message because you are subscribed to the

Re: [protobuf] Protocol Buffers RPC design questions

2010-07-16 Thread Evan Jones
One note is that the built-in service implementation is sort of considered to be deprecated at this point, due to the plugin infrastructure that allows people to generate their own service code. On Jul 15, 2010, at 5:22 , Jamie McCrindle wrote: 2. I've been pondering how to inject in

Re: [protobuf] Help with basic concepts of descriptors and reflection

2010-07-16 Thread Evan Jones
On Jul 15, 2010, at 16:40 , mark.t.macdon...@googlemail.com wrote: coutMessage1.name(); coutMessage1.GetReflection()-GetString( ref, stabiliser.GetDescriptor()-FindFieldByName(name)); The differences between these two are HUGE. The first one is a compiled local variable reference

Re: [protobuf] Re: C++ syntax: how to set a singular enum field

2010-07-16 Thread Evan Jones
On Jul 16, 2010, at 5:47 , mark.t.macdon...@googlemail.com wrote: if (stabiliser.retraction()==device::HOUSED) coutTrue\n; //but this doesn't compile stabiliser.set_retraction(device::RETRACTED); } See the generated .h file to see what might be going wrong. For enums, a .set_* method should

[protobuf] Re: Issue 187 in protobuf: Command-line argument to override the optimize_for option

2010-07-16 Thread protobuf
Comment #6 on issue 187 by esho...@fusionio.com: Command-line argument to override the optimize_for option http://code.google.com/p/protobuf/issues/detail?id=187 What about an even more generic implementation where you can optionally poke arbitrary strings into the file from the commandline?