← Back to team overview

geda-developers team mailing list archive

Re: [RFC] libgeda data structures and algorithms

 

On Sun, 16 Dec 2012 12:38:02 -0800, Edward Hennessy <ehennes@xxxxxxxxxxxxx>
wrote:
> On Dec 16, 2012, at 10:18 AM, Ivan Stankovic wrote:
>> So far I only implemented EdaObject, EdaPage, EdaNet and EdaPin and I'm
>> able to load very simple schematics. Attributes willl be perhaps the
most
>> work, but even that should be relatively straightforward. Every object
>> emits
>> an event when something interesting happens, such as adding or removing
>> an
>> object to/from a page, rotating an object etc.
>> 
>> [snip]
> 
> I did the same thing in the component manager. In the git repository for
> the 
> component manager, there are the following sources:
> 
> geom-* : Boxed types representing all the primitives.
> sch-*  : GObject types representing all the GOBJECTs in gEDA.
> 
> These portions of the code are decoupled well, and anyone is welcome to
use
> them.

Well, I guess it's worth looking into whether any of that code can be
adapted!

> I discover that it is quite easy to burnout with the large amounts of
> boilerplate code required by GObject. (I also discovered that Vala takes
> the pain out of implementing GObjects.)

I find that the (undocumented?) G_DEFINE_TYPE macros are very helpful!

Peter

-- 
Peter Brett <peter@xxxxxxxxxxxxx>
Remote Sensing Research Group
Surrey Space Centre


References