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) cout<<"True\n"; //
this works
stabiliser.set_retraction(RR_system::RETRACTED); //but this doesn't
compile
}
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.