CVS update: gnucash/src/engine

Derek Atkins warlord@MIT.EDU
25 Nov 2001 00:02:24 -0500


linas@linas.org (Linas Vepstas) writes:

> Are you sure you don't want to use KVP for this?  We already have a
> storage mechanism for KVP, and a whole infrastructure for dealing with
> it.  ...

Yes, I'm sure, because the data being stored isn't KVP data, but
arbitrary gpointer data (which you can't store in a KVP anyways).  The
idea was to allow modules to have a hook to store data in the Book.
Think of this not as a KVP but as arbitrary equivalent storage to
	book->ttlist
	book->accountgroup
	book->sx_accgroup
	etc.

In particular, I have code that is storing a GHashTable using this
mechanism (which I plan to commit as soon as I get it working :) What
I might actually do is have it store a private structure which
contains a GHashTable (or multiple hash tables).

-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@MIT.EDU                        PGP key available