get all enum fields and their possible values

2009-10-02 Thread Tuppy Hamper
is it possible to dynmically get allthe enum fields associated with a protocol buffer message and all the valid values defined in that enum fields? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" gr

Re: get all enum fields and their possible values

2009-10-02 Thread Tuppy Hamper
I am looking for a way to get all the enums defined, not just the ones that are set. On Oct 2, 11:23 am, Tuppy Hamper wrote: > is it possible to dynmically get allthe enum fields associated with a > protocol buffer message and all the valid values defined in that enum &g

Re: get all enum fields and their possible values

2009-10-02 Thread Tuppy Hamper
>     for (int j = 0; j < type->value_count(); j++) { >       const EnumValueDescriptor* value = type->value(i); >       // value->name() and value->number() describe this value. >     } >   } > > > > } > On Fri, Oct 2, 2009 at 8:23 AM, Tuppy Hamper wrote: > >