gEDA-dev: Attrib API notes
Peter Clifton
pcjc2 at cam.ac.uk
Sun Nov 11 15:32:33 EST 2007
Attached is some notes on the gEDA attribute API I made when looking to
see if some things could be cut down. There is a fair bit of
code-duplication still, and I didn't finish the job in making the
simplifications.
Some brief notes on what a new API might have are below:
"""
Attribute API..
Query by name, for a particular attrib in a list of attributes (glist of
ATTRIB, or just plain "OBJECT"s which store the name=value stuff)
Helper to execute the above - for an object which might have attributes
- for a list of objects which might have attributes <-- THIS IS GOING ANYWAY IN FAVOUR OF glists
- for a glist of objects which might have attributes
When we want to find the 'n'th copy of a given attribute, is that per
object, or for the entire list?
What use-cases are there using API for getting the 'n'th attribute with
a given name - could we return a list?
"""
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gEDA_attrib_API
Type: text/x-csrc
Size: 6582 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20071111/8a3f97bc/attachment.c
More information about the geda-dev
mailing list