Hi Peter Clifton,

Not sure if your changes would affect the following,
but just in case:

1) Currently, gEDA supports multiple attributes of
   the same attribute name with different attriute
   values assigned to a single symbol instance.
   e.g.,
      source=page1.sch
      source=page2.sch
      .... etc

2) Attribute values can contain most text characters
   including "=".

I am curious if the above 2 items would be affected.

Best Regards,

Paul Tan



-----Original Message-----
From: Peter Clifton <[EMAIL PROTECTED]>
To: geda-dev <[EMAIL PROTECTED]>
Sent: Sun, 11 Nov 2007 12:32 pm
Subject: gEDA-dev: Attrib API notes



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!)




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev


________________________________________________________________________
Check Out the new free AIM(R) Mail -- Unlimited storage and 
industry-leading spam and email virus protection.


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to