Debian Codegraph @

reports/genancc.ll

raw
1 /*
2 * @progname genancc.ll
3 * @version 1997-11
4 * @author Wetmore, Manis, Kirby
5 * @category
6 * @output Text
7 * @description
8 *
9 * The output of this report is a GEDCOM file of the following:
10 * all ancestors,
11 * all spouses and
12 * all children of all ancestors and
13 * all descendents of a person,
14 * as well as the person him/herself
15 * and his/her spouses.
16 *
17 * This form of the program is probably the most useful for extracting
18 * data when a person requests data about someone from your database.
19 *
20 * modified from genancc1
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 * August 1992
28 * Nov. 1997 I added lines to get all descendants --James Kirby
29 *
30 */
31
32 proc main ()
33 {
34 indiset(set1) /*declare an indi set*/
35 indiset(set2) /*declare another indi set*/
36 indiset(set3) /*declare another indi set*/
37
38 getindi(indi) /*ask user to identify person*/
39 addtoset(set1, indi, n) /*add that person to set1*/
40
41 set(set2, ancestorset(set1)) /* for ancestors */
42
43 set(set1, union(set1, set2)) /* combine set1 and set2 */
44 set(set2, spouseset(set1))
45 set(set1, union(set1, set2)) /* combine set1 and set2 */
46 set(set2, childset(set1))
47 set(set1, union(set1, set2)) /* combine set1 and set2 */
48 set(set3, descendantset(set2)) /* get descendants */
49 set(set1, union(set1, set3)) /* combine set1 and set2 */
50
51 gengedcom(set1) /*write final set as GEDCOM file*/
52 }
53
54 /* end of report */