Hi, The generated `Handover` struct is acting as a module here. The classes you'll use when actually reading and writing values are `Handover::Reader` and `Handover::Builder`, each of which has accessor methods corresponding to the fields you've defined. See https://capnproto.org/cxx.html#structs .
- David On Fri, Aug 12, 2016 at 1:33 AM, <[email protected]> wrote: > Hi, > This is my first project with capnp proto. I compiled the following > capnp file to generate capnp.h and capnp.c++ > struct Handover > { > ruleId @0: Text; > start @1: List(StartEvent); > payload @2: List(PayloadEvent); > update @4: List(UpdateEvent); > end @3: List(EndEvent); > } > > In the generated .h file I am getting the following struct for Handover. > > ststruct Handover { > Handover() = delete; > > class Reader; > class Builder; > class Pipeline; > > struct _capnpPrivate { > CAPNP_DECLARE_STRUCT_HEADER(e6870fa4f9ef7613, 0, 5) > #if !CAPNP_LITE > static constexpr ::capnp::_::RawBrandedSchema const* brand = > &schema->defaultBrand; > #endif // !CAPNP_LITE > }; > }; > > My question is why the fileds like ruleId, start, payload, update and end > are missing from structure definition. Any idea will be helpful. > > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/capnproto. > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
