Re: Proposal for API-Addition

ace jones <[email protected]> Tue, 19 Apr 2005 20:49:28 -0700
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
On Mon, 2005-04-18 at 19:27, Martin Preuss wrote:
> Why am I proposing this ? 
> As you know Libofx is used by such big application as GnuCash and KMyMoney. 
> Recompiling these applications can take a very long time (and could be too 
> much for inexperienced users). It would be nice to not have to do this only 
> because a field has been added.

On KMM, we try to solve this by making it easier to compile and cutting
down on dependencies ;-)

> However, if we would like to do it perfectly, we would have to protect the 
> members of all structures and classes by getter and setter functions, to 
> introduce constructor and destructor functions for all structs/classes and to 
> hide the real definitions of the structures.

Martin, are there other major packages that use this approach?  I'll
admit, it seems a bit unwieldy, but I would like to do some research to
see how it works on other projects.  Particularly asking their
developers and maybe their library clients how it works.  (And ideally
I'm looking for a high-profile, high user-base project here.)

In any case, this is starting to sound like hacking C to make it work
like C++.  Which is why so many of us abandoned C to use C++ anyway :-)

> PS: @Ace: I didn't think that the new code in LibOFX would make it *that* easy 
> to write an OFX-DirectConnect backend ;-) Really nice work ;-)

Thanks!  Although once you get that stuff working, you're going to want
transactions, which means I just made myself more work.  I haven't
thought about API's for that at all.  Perhaps you could post your HCBI
API's for sending transactions as a reference?

</Ace>



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728