I am slowly going over the code, trying to find out what portions I
could add to. I have written a genealogy program before--it never was
completed due to realiazation that GUIs (on windows) weren't my forte. I
have no idea where the source code went. However, if I remember correctly,
it broadly consisted of two STL maps, each keyed to an integer key. These
maps contained Individual and Family records. In other words, I took the
GEDCOM structure literally.
I have several comments and questions.
What is currently being used for the parser? Is it based on YACC/bison? Is
there preliminary code for this?
The calender code looks like a bit of a mess. I realize that it has been
converted from C. I would add support for proper C++ strings... for one
thing.
In my older program, I attempted to use julian days exclusively,
converting on the fly to the appropriate calender. As I recall, I had a
precison modifier to suppress the day and month, when appropriate. The
biggest problem was dealing with the "between" codeword in gedcoms.
It might be appropriate to use inheritance, such as:
class genericdate
{
...
protected:
long julian_day;
...
}
class gregorian_date: public generic_date{..}
class hebrew_date: public generic_date{..}
Hmm...
Jeremy
_______________________________________________
Genes-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/genes-devel