QOF iteration and callbacks

Derek Atkins warlord at MIT.EDU
Sun Jun 20 12:45:37 EDT 2004


linas at linas.org (Linas Vepstas) writes:

> On Sun, Jun 20, 2004 at 12:16:20PM -0400, Derek Atkins was heard to remark:
>> > void qof_class_foreach (QofClassForeachCB, gpointer user_data);
>> 
>> We already had qof_object_foreach_type(); why do we need a
>> qof_class_foreach()?
>
> I am thinking about merging object and class into one thing. 
> Maybe.  Any remarks pro or con appreciated.

What's the difference now?

> But right now, they're distinct, and in principle, just because
> one is used doesn't mean the other is.  The foreach-lists could
> be different.

So what's your conceptual distinction between a QofObject and a
QofClass?

> --linas
>
> p.s. the consideration driving the 'merge' thoughts is that I need
> to provide an API to declare how objects/class paramters map to 
> sql tables and fields.  I've got an API that does this now, but its
> not 'generic' and sufficiently abstracted yet.

Yep, but doing this would be a Good Thing.  :)

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list