X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=j2MJfdqXMTjXmk59F/bFPcINugxe8D+o1tcyfRMogDQ=; b=mn0CMCgUORORFpzboztw9slX8xWt9db2UbpScbfaIOfJoshORKsuXOXL9OKH5bHDs4 mblFPL24ixhztg7nC99WldHSIm86zS35QCWe/qqR9dUXPM2D8xwp1LVWalj1UwQgZxvy kKZp7pfUXEb+ddDvkyK3W7HFyaWQAN96GgsNxI5VLLWd0zMHriDYc6+bHIvM2xAM5juM uaeOQD47tZY9Ds6V+sUZoPGThx8ms9+1596fFjV8907ZOOuSDNZi43OCkekSf/cfrGiS 0jq7jltVlsvnr5rFyLw8GpVe73U07WiAqhdefUSwh5RSKJnLLY1HustffFN75Wtvqyu+ rB6Q== MIME-Version: 1.0 X-Received: by 10.112.210.6 with SMTP id mq6mr30934413lbc.83.1440599985143; Wed, 26 Aug 2015 07:39:45 -0700 (PDT) In-Reply-To: <20150826120216.f1393e48edb18e1379c733ce@gmail.com> References: <20150824223846 DOT 0ba61ba7 AT jive DOT levalinux DOT org> <55DBA2B7 DOT 1080501 AT ecosensory DOT com> <55DC31E0 DOT 9050606 AT jump-ing DOT de> <20150825203732 DOT 12446 DOT qmail AT stuge DOT se> <20150826120216 DOT f1393e48edb18e1379c733ce AT gmail DOT com> Date: Wed, 26 Aug 2015 10:39:45 -0400 Message-ID: Subject: Re: [geda-user] pcb file format From: "Evan Foss (evanfoss AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t7QEdoE1013042 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, Aug 26, 2015 at 6:02 AM, Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > On Tue, 25 Aug 2015 17:02:10 -0400 > "Evan Foss (evanfoss AT gmail DOT com) [via geda-user AT delorie DOT com]" wrote: > >> On Tue, Aug 25, 2015 at 4:37 PM, Peter Stuge (peter AT stuge DOT se) [via >> geda-user AT delorie DOT com] wrote: >> > Evan Foss (evanfoss AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: >> >> The problem that has been consuming my mind or a few months now is >> >> how all of this should be represented in memory. >> > >> > Linked lists. The overhead is small. >> >> Yes but you want the lists to be meaningful. Just having a list of >> elements on a layer is not enough. The way you store the info makes >> moving footprints or moving traces more straight forward to implement. > > I guess it would be possible to get different views. What is needed is a set of functions to access the data. I guess should be a need for: iterate thru the objects on one layer, iterate thru the nets, iterate thru the descriptors, extract symbols with a particular value, iterate thru symbol coordinates to renumber them left rigt, ... Exactly. PCB currently does this only it does not have all the information in a unified structure. It does iterate through the list of connected items and build a netlist but things like design rules are apparently processed in a messier way. -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/