| 1 |
/* |
| 2 |
* @progname genancc1.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Wetmore, Manis |
| 5 |
* @category |
| 6 |
* @output GEDCOM |
| 7 |
* @description |
| 8 |
* |
| 9 |
* This program is useful for extracting |
| 10 |
* data when a person requests data about someone from your database. |
| 11 |
* The output of this report is a GEDCOM file of the following: |
| 12 |
* all ancestors, |
| 13 |
* all spouses and |
| 14 |
* all children of all ancestors and |
| 15 |
* all descendents of a person, |
| 16 |
* as well as the person him/herself |
| 17 |
* and his/her spouses. |
| 18 |
* |
| 19 |
* genancc1 |
| 20 |
* |
| 21 |
* by Tom Wetmore, [email protected] |
| 22 |
* (as sent to Cliff Manis in August 1992) |
| 23 |
* |
| 24 |
* This report works only with the LifeLines Genealogy program |
| 25 |
* |
| 26 |
* [I have only given it a name and added lots of comments] /cliff |
| 27 |
* |
| 28 |
* August 1992 |
| 29 |
* |
| 30 |
* For example, the output of this report is a GEDCOM file of the |
| 31 |
* following: |
| 32 |
* |
| 33 |
* all ancestors, |
| 34 |
* all spouses and |
| 35 |
* all children of all ancestors and |
| 36 |
* all descendents of a person, |
| 37 |
* as well as the person him/herself |
| 38 |
* and his/her spouses. |
| 39 |
* |
| 40 |
* This form of the program is probably the most useful for extracting |
| 41 |
* data when a person requests data about someone from your database. |
| 42 |
*/ |
| 43 |
|
| 44 |
proc main () |
| 45 |
{ |
| 46 |
indiset(set1) /*declare an indi set*/ |
| 47 |
indiset(set2) /*declare another indi set*/ |
| 48 |
|
| 49 |
getindi(indi) /*ask user to identify person*/ |
| 50 |
addtoset(set1, indi, n) /*add that person to set1*/ |
| 51 |
|
| 52 |
set(set2, ancestorset(set1)) /* for ancestors */ |
| 53 |
|
| 54 |
set(set1, union(set1, set2)) /* combine set1 and set2 */ |
| 55 |
set(set2, spouseset(set1)) |
| 56 |
set(set1, union(set1, set2)) /* combine set1 and set2 */ |
| 57 |
set(set2, childset(set1)) |
| 58 |
set(set1, union(set1, set2)) /* combine set1 and set2 */ |
| 59 |
|
| 60 |
gengedcom(set1) /*write final set as GEDCOM file*/ |
| 61 |
} |
| 62 |
|
| 63 |
/* end of report */ |
| 64 |
|