On Aug 28, 2013, at 9:12 PM, Tom Browder wrote:
> I think I need to revert most if not all of my recent trunk changes--the
> attibutes.c file and the db5 functions need to be kept in synch with any
> changes to the bu_avs_attribute_pair struct and they haven't been. Any db
> using the changed struct is probably whacked in some fashion.
>
> I need to create a branch to continue that work.
>
> I'll try to undo the mess tomorrow.
Tom,
Note that there's also an issue of the db5 file format, which is maybe what you
just noticed. I thought when you started working on it that you had something
in mind for how to deal with storing them on disk. I haven't read the v5 spec
in a while, but the basic format of attributes on disk is a bytelen + chars +
'\0' + bytelen + chars + '\0' to store the name and value as a string... and
that's it. Any timestamping will either have to be a separate attribute or
attribute object or will need to be cleverly encoded in a way that is
backwards-compatible.
One such possible encoding that might work is to store data after the '\0'
since it'll still terminate the name. The bytelen is used to jump from name to
value, so that should also work. That means there might be the possibility to
stash arbitrary data. We should think through what we might want that to look
like because there are some other needs (like binary values for floating point
data instead of strings).
Thanks for the heads up on the need to revert. I'm hoping to sync a release
branch on Thursday or Friday to start stabilizing for release.
Cheers!
Sean
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel