For any given business object the following applies:
There exist three files for each <object>:
- gnc<object>.h - declaring the public interface
- gnc<object>P.h - declaring additional object management methods not for client use.
- gnc<object>.c - implementing the object
The implementation is confined to gnc<object>.c, including the defininition of struct _gnc<object>.
Client code #includes only gnc<object>.h. The client is aware only of the datatype Gnc<Object>, defined as "typedef _gnc<object> Gnc<object>". The client only deals with an unspecified structure via pointer--it remains blissfully unaware of _gnc<object>'s internal structure.
Did I get it right? Should this sort of stuff be contributed to the devel wiki?
--rich
gn
_______________________________________________ gnucash-devel mailing list [EMAIL PROTECTED] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
