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
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;
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
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
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
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
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?