Closed dfenucci closed 3 years ago
Hi Toby,
here are the main updates I've done so far.
dccl_oneof
unit test in this commit, although I'm not sure this is the best way to approach the issue. Do you have any better idea?dccl.msg.id
and the fields with in_head
set to true)?info
; let me know if you think it's ok Thanks a lot
Thanks - I'll take a deeper look later, but quick answers to your questions:
does the expected min/max size of a message include the header as well (i.e. the dccl.msg.id and the fields with in_head set to true)?
Yes, it includes the header as well, assuming you mean the call to dccl::Codec::size(): https://github.com/GobySoft/dccl/blob/3.0/src/codec.cpp#L429
I'm fine with excluding the use of oneof in the header, but I would like Codec to throw an exception if someone does mark a oneof field as in_head: true
.
Thanks for the feedback.
I'm fine with excluding the use of oneof in the header, but I would like Codec to throw an exception if someone does mark a oneof field as
in_head: true
.
This is now implemented in this commit
Thanks, this looks good to me, now. I have a bit more to do before I release DCCL4, but in the meantime you can access the DCCL4 pre-release Debian/Ubuntu packages as needed from the "continuous" repository:
dccl4-apps-dbgsym - debug symbols for dccl4-apps
dccl4-apps - Applications for the Dynamic Compact Control Language.
dccl4-compiler-dbgsym - debug symbols for dccl4-compiler
dccl4-compiler - Protobuf compiler for DCCL (protoc-gen-dccl): used to create Boost Units methods
dccl4-doc - Documentation for the Dynamic Compact Control Language.
libdccl4-dbgsym - debug symbols for libdccl4
libdccl4-dev - Developers' package for the Dynamic Compact Control Language.
libdccl4 - Libraries for the Dynamic Compact Control Language.
Thanks again for your valuable contribution.
Hi -
Thank you very much for this pull request. A quick look at the code looks very good to me. Could you please add/update the following so I can merge this:
dccl_test_oneof
fails).dccl_test_oneof
to add a few more tests? I'd like to verify the max/min sizes and perhaps add someoneof
fields with more than two members. If you have a real message you're using that you can add to the unit test, all the better.Thanks again for this valuable contribution!