On 1 Mar 2001, Lars Clausen wrote:

> 
> I'm working on propertyfying the ER objects (relationship, attribute and
> participation are done), and it struck me that it ought to be possible to
> define the *_load and *_save functions from the properties, at least those
> where you define the offsets.  Is there any reason not to?  In fact, *_copy
> could be done that way as well.  This would remove almost all of the
> repetitive parts of writing an object.

See the object_load_props() and object_save_props() functions in
lib/properties.[ch] -- these do exactly that.  I didn't end up using them
for the objects I converted over to properties because they ended up with
subtly different formats, which would have broken old dia files.  For new
objects though, these could very easily be used for this purpose.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


Reply via email to