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 proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to