Re: C++ and derived classes issue

2016-02-15 Thread Larry Evans
On 02/13/2016 05:56 PM, Larry Evans wrote: [snip] > The following Gist illustrates this mpl::vector prototype: > > https://gist.github.com/cppljevans/30990f76f6d2917f21c8 > To anyone interested in the above, please download it within the next 2 days. After that, I

Re: C++ and derived classes issue

2016-02-13 Thread Larry Evans
On 02/13/2016 03:14 PM, John Ralls wrote: > >> On Feb 13, 2016, at 12:25 PM, Larry Evans wrote: >> >> >> >> On 02/13/2016 01:03 PM, John Ralls wrote: >> [snip] >>> You started out trying to encapsulate an object and a flag that >> indicated

Re: C++ and derived classes issue

2016-02-13 Thread Larry Evans
On 02/13/2016 03:14 PM, John Ralls wrote: > >> On Feb 13, 2016, at 12:25 PM, Larry Evans wrote: >> >> >> >> On 02/13/2016 01:03 PM, John Ralls wrote: >> [snip] >>> You started out trying to encapsulate an object and a flag that >> indicated

Re: C++ and derived classes issue

2016-02-13 Thread Larry Evans
On 02/13/2016 01:03 PM, John Ralls wrote: [snip] > You started out trying to encapsulate an object and a flag that indicated where to put it. That had genericity problems because there's no type-safe way to generically handle the differing return types. Polymorphism to the rescue! Except that it

Never Mind( was Re: C++ and derived classes issue

2016-02-13 Thread Larry Evans
On 02/13/2016 10:10 AM, Larry Evans wrote: [snip] > Wouldn't code here: > > https://github.com/gjanssens/gnucash/blob/cpp/src/import-export/csv-imp/gnc-trans-props.hpp#L177 > > also have to be changed? Currently, it has: > > /** A struct containing TransProperties

Re: C++ and derived classes issue

2016-02-13 Thread Larry Evans
On 02/12/2016 07:15 PM, John Ralls wrote: > >> On Feb 12, 2016, at 1:09 PM, Geert Janssens wrote: >> >> Hi, >> >> While working to convert the csv importer to c++ I've come across this issue: [snip] >> To avoid code duplication, I chose to replace the struct with a small hierarchy of classes, the

csv import design docs

2015-01-31 Thread Larry Evans
Would: http://svn.gnucash.org/docs/HEAD/druidframework.html containing: Derek Atkins de...@ihtfp.com 2004-01-12 Work in progress and: http://svn.gnucash.org/docs/HEAD/qif.html containing: Derek Atkins de...@ihtfp.com 2004-01-07 A work in progress be some help in understanding t

Re: make check failure: missing POTFILES

2013-01-27 Thread Larry Evans
On 01/27/13 10:17, John Ralls wrote: > > On Jan 26, 2013, at 9:45 PM, Larry Evans wrote: > >> On 01/26/13 16:56, John Ralls wrote: >>> >>> On Jan 26, 2013, at 5:23 AM, Larry Evans wrote: >>> >>>> Using the download: >>>> &

Re: make check failure: missing POTFILES

2013-01-27 Thread Larry Evans
On 01/26/13 16:56, John Ralls wrote: > > On Jan 26, 2013, at 5:23 AM, Larry Evans wrote: > >> Using the download: >> >> >> http://iweb.dl.sourceforge.net/project/gnucash/gnucash%20%28stable%29/2.4.11/gnucash-2.4.11.tar.bz >> >> and after doing seve

make check failure: missing POTFILES

2013-01-26 Thread Larry Evans
Using the download: http://iweb.dl.sourceforge.net/project/gnucash/gnucash%20%28stable%29/2.4.11/gnucash-2.4.11.tar.bz and after doing several iterations of configure (interleaved with several synaptic installs for missing packages), then `make` I tried `make check`, but got error message which

Re: gnc:make-account-list-limited example?

2006-07-31 Thread Larry Evans
On 07/31/2006 07:30 AM, Larry Evans wrote: [snip] > Never mind. I passed the wrong type. Initially I though just passing > the types I wanted to limit the selection to; so, I passed the default > types. However this resulted in an empty selection list. So I figured Where's

Re: gnc:make-account-list-limited example?

2006-07-31 Thread Larry Evans
On 07/30/2006 03:00 PM, Larry Evans wrote: > Anyone have an example of the use of this function. I can't find any in > the 2.0.0: [snip] > It only occurs with the '(if #f'. When code is '(if #t' it works. > The output from the pretty prints is as expected, i

gnc:make-account-list-limited example?

2006-07-30 Thread Larry Evans
Anyone have an example of the use of this function. I can't find any in the 2.0.0: cd /usr/share/gnucash/ find . -name \*.scm -exec grep make-account-list-limited {} \; -ls ;; Just like gnc:make-account-list-limited-option except it (gnc:make-account-list-limited-option (define (gnc:make-accou

types documentation (was Re: unused opt-callback in trunk/src/report/utility-reports/view-column.scm

2006-07-18 Thread Larry Evans
On 07/18/2006 10:41 AM, Derek Atkins wrote: Larry Evans <[EMAIL PROTECTED]> writes: Good point, but a better (IMHO) method is to document the "type" of report-info with comments somewhere in the file. Something like: ;;Types: ; ( ;(gnc:make-report ; report-name

Re: unused opt-callback in trunk/src/report/utility-reports/view-column.scm

2006-07-18 Thread Larry Evans
On 07/18/2006 08:51 AM, Derek Atkins wrote: [snip] > I'm sorry it confused you. But I think it's okay (and a GOOD IDEA) > to parse out a list into its components even if you don't use every > component of the list. It lets future developers understand it, and > one day a future developer may want

Re: report/view-column make-internal-option "report-list"

2006-07-17 Thread Larry Evans
On 07/17/2006 09:28 AM, Derek Atkins wrote: > Hi, > > A couple of things. First, you haven't said what you're > really trying to do. If you kept the aaror.zip I emailed you privately on 7/13, you can browse the aaror.html contained therein and see a table like: date flow

unused opt-callback in trunk/src/report/utility-reports/view-column.scm

2006-07-17 Thread Larry Evans
The variable, opt-callback, is declared (line 121) but not used anywhere in the code. ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Re: report/view-column make-internal-option "report-list"

2006-07-16 Thread Larry Evans
On 07/16/2006 03:50 PM, Larry Evans wrote: > On 07/16/2006 01:58 PM, Larry Evans wrote: [snip] > Grepping for __general in .c files found: > > find . -name \*.c -exec grep __general {} \; -ls > gnc_option_db_lookup_option(view->odb, "_

Re: report/view-column make-internal-option "report-list"

2006-07-16 Thread Larry Evans
On 07/16/2006 01:58 PM, Larry Evans wrote: > On 07/16/2006 01:39 PM, Derek Atkins wrote: > >>Quoting Larry Evans <[EMAIL PROTECTED]>: >> >> >> >>>On 07/16/2006 01:22 PM, Larry Evans wrote: >>>[snip] >>> >>> >>>

Re: report/view-column make-internal-option "report-list"

2006-07-16 Thread Larry Evans
On 07/16/2006 01:39 PM, Derek Atkins wrote: > Quoting Larry Evans <[EMAIL PROTECTED]>: > > >>On 07/16/2006 01:22 PM, Larry Evans wrote: >>[snip] >> >>>I'd appreciate any suggestions about how to figure out why >>>the

Re: report/view-column make-internal-option "report-list"

2006-07-16 Thread Larry Evans
On 07/16/2006 01:22 PM, Larry Evans wrote: [snip] > I'd appreciate any suggestions about how to figure out why > the "report-list" option is showing up when I ask to change ^not > the options. ___ gn

report/view-column make-internal-option "report-list"

2006-07-16 Thread Larry Evans
I've copied view-column to scratch.scm to try and figure how it works. However, the "Contents" tab no longer shows when attempting to modify options. The code for view-column has: ;; the report-list is edited by a special add-on page for the ;; options editor. (opt-register

duplicate gnc:html-text? bug?

2006-07-15 Thread Larry Evans
In the 2.0.0 version, in file gnucash/scm/html-text.scm there's duplicate definitions of gnc:html-text? Should I file a low priority bug in: http://bugzilla.gnome.org/simple-bug-guide.cgi ? BTW, I don't have an account at bugzilla yet; so, it may just be easier for some else to file the bug. _

Re: command-line .scm execution (was Re: Where's --load for 2.0.0?

2006-07-13 Thread Larry Evans
On 07/13/2006 05:24 PM, Derek Atkins wrote: > Quoting Larry Evans <[EMAIL PROTECTED]>: > > >>Good idea. I'll just have to read guile manual to figure how to >>specify the directory where modules are found. I had tried >>figuring how gnucash does this

command-line .scm execution (was Re: Where's --load for 2.0.0?

2006-07-13 Thread Larry Evans
On 07/13/2006 04:20 PM, Chris Shoemaker wrote: > On Thu, Jul 13, 2006 at 12:29:31PM -0500, Larry Evans wrote: > >>On 07/13/2006 12:10 PM, Derek Atkins wrote: >> >>>This "feature" was removed because when we asked online nobody said >>>they were

Re: Where's --load for 2.0.0?

2006-07-13 Thread Larry Evans
On 07/13/2006 12:10 PM, Derek Atkins wrote: > This "feature" was removed because when we asked online nobody said > they were using it. What are you using it for? To prototyp scm code to calculate average annualized rate of return (aaror). IOW, given: (define flow-exp-0 (list ;;flow e

Where's --load for 2.0.0?

2006-07-13 Thread Larry Evans
After installing 2.0.0 from unstable distribution from debian repository at: http://http.us.debian.org/debian I tried: gnucash --load demo-zero-base.scm but got error window with text: The file type of file /home/evansl/.gnucash/data/--load is unknown This worked with 1.8.10 version

Why is fin.scm created in 2 places?

2006-07-13 Thread Larry Evans
In my debian version of gnucash, version 1.8.10, fin.scm appears in 2 directories: cd /usr/share/gnucash/ find . -name fin.scm ./scm/fin.scm ./guile-modules/gnucash/fin.scm Is this by accident or design? ___ gnucash-devel mailing list gnucash-devel@gnu

Re: why balance-sheet report's totals-get-balance fails in my report.

2006-07-07 Thread Larry Evans
On 07/07/2006 05:38 PM, Larry Evans wrote: > I copied the balance-sheet.scm totals-get-balance to the > following code: [snip] > ;body: > (gnc:account-get-comm-balance-at-date >account >

why balance-sheet report's totals-get-balance fails in my report.

2006-07-07 Thread Larry Evans
I copied the balance-sheet.scm totals-get-balance to the following code: (gnc:html-table-append-row/markup! table (if (odd? row-num) "normal-row" "alternate-row") (list (gnc:print-date from-date-tp) (gnc:make-html-table-cell/mark

Re: xml schema description of XML GnuCash file?

2005-10-13 Thread Larry Evans
On 10/13/2005 01:25 PM, Neil Williams wrote: [snip] Full details of QSF are here (including a Schema): http://code.neil.williamsleesmill.me.uk/qsf.html Very interesting. The page: http://code.neil.williamsleesmill.me.uk/map.html contains: qsf-map is an XML format used to map a series o

xml schema description of XML GnuCash file?

2005-10-13 Thread Larry Evans
Such a description could be used as described here: http://ws.apache.org/jaxme/manual/ch01.html#N1003C and it might just be useful for developers to check that they've created a partially correct XML GnuCash file after some modifications to the gnucash code. Is there any interest in developin

Re: XSLT Transform for Gnucash XML file

2005-09-18 Thread Larry Evans
On 09/05/2003 01:14 AM, Matthew Vanecek wrote: I've written a simple XSLT transformation for the Gnucash XML file. It spits out an HTML file with a 4-column table, "Account Name", "Date Entered", "Number", "Descriptions", "Value". The "Value" column values are preceded by an '='. This makes it