From: Peter Verthez Date: Fri, 1 Nov 2002 10:32:02 +0000 (+0000) Subject: Added links to the definitions in the Gedcom standard. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=e3dd6ccaa1b35bd47b80b45077e9e0795d964bb5;p=gedcom-parse.git Added links to the definitions in the Gedcom standard. --- diff --git a/include/gom.h b/include/gom.h index 5e33076..a27bab4 100644 --- a/include/gom.h +++ b/include/gom.h @@ -41,33 +41,33 @@ struct user_data { struct user_data *previous; }; -struct address { - char *full_label; - char *line1; - char *line2; - char *city; - char *state; - char *postal; - char *country; +struct address { /* ADDRESS_STRUCTURE */ + char *full_label; /* ADDRESS_LINE */ + char *line1; /* ADDRESS_LINE1 */ + char *line2; /* ADDRESS_LINE2 */ + char *city; /* ADDRESS_CITY */ + char *state; /* ADDRESS_STATE */ + char *postal; /* ADDRESS_POSTAL_CODE */ + char *country; /* ADDRESS_COUNTRY */ struct user_data *extra; }; struct text { - char *text; + char *text; /* TEXT_FROM_SOURCE */ struct user_data *extra; struct text *next; struct text *previous; }; -struct source_citation { - char *description; +struct source_citation { /* SOURCE_CITATION */ + char *description; /* SOURCE_DESCRIPTION */ struct xref_value *reference; - char *page; - char *event; - char *role; - struct date_value *date; + char *page; /* WHERE_WITHIN_SOURCE */ + char *event; /* EVENT_TYPE_CITED_FROM */ + char *role; /* ROLE_IN_EVENT */ + struct date_value *date; /* ENTRY_RECORDING_DATE */ struct text *text; - char *quality; + char *quality; /* CERTAINTY_ASSESSMENT */ struct multimedia_link *mm_link; struct note_sub *note; struct user_data *extra; @@ -75,8 +75,8 @@ struct source_citation { struct source_citation *previous; }; -struct note_sub { - char *text; +struct note_sub { /* NOTE_STRUCTURE */ + char *text; /* SUBMITTER_TEXT */ struct xref_value *reference; struct source_citation *citation; struct user_data *extra; @@ -84,30 +84,30 @@ struct note_sub { struct note_sub *previous; }; -struct place { - char *value; - char *place_hierarchy; +struct place { /* PLACE_STRUCTURE */ + char *value; /* PLACE_VALUE */ + char *place_hierarchy; /* PLACE_HIERARCHY */ struct user_data *extra; struct source_citation *citation; struct note_sub *note; }; -struct multimedia_link { +struct multimedia_link { /* MULTIMEDIA_LINK */ struct xref_value *reference; - char *form; - char *title; - char *file; + char *form; /* MULTIMEDIA_FORMAT */ + char *title; /* DESCRIPTIVE_TITLE */ + char *file; /* MULTIMEDIA_FILE_REFERENCE */ struct note_sub *note; struct user_data *extra; struct multimedia_link *next; struct multimedia_link *previous; }; -struct lds_event { - char *date_status; - struct date_value *date; - char *temple_code; - char *place_living_ordinance; +struct lds_event { /* LDS_INDIVIDUAL_ORDINANCE */ + char *date_status; /* LDS_BAPTISM_DATE_STATUS */ + struct date_value *date; /* DATE_LDS_ORD */ + char *temple_code; /* TEMPLE_CODE */ + char *place_living_ordinance; /* PLACE_LIVING_ORDINANCE */ struct xref_value *family; struct source_citation *citation; struct note_sub *note; @@ -117,39 +117,39 @@ struct lds_event { }; struct user_ref_number { - char *value; - char *type; + char *value; /* USER_REFERENCE_NUMBER */ + char *type; /* USER_REFERENCE_TYPE */ struct user_data *extra; struct user_ref_number *next; struct user_ref_number *previous; }; -struct change_date { - struct date_value *date; - char *time; +struct change_date { /* CHANGE_DATE_STRUCTURE */ + struct date_value *date; /* CHANGE_DATE */ + char *time; /* TIME_VALUE */ struct note_sub *note; struct user_data *extra; }; -struct event { +struct event { /* FAMILY_EVENT_STRUCTURE */ int event; char *event_name; char *val; - char *type; - struct date_value *date; + char *type; /* EVENT_DESCRIPTOR */ + struct date_value *date; /* DATE_VALUE */ struct place *place; struct address *address; - char *phone[3]; - struct age_value *age; - char *agency; - char *cause; + char *phone[3]; /* PHONE_NUMBER */ + struct age_value *age; /* AGE_AT_EVENT */ + char *agency; /* RESPONSIBLE_AGENCY */ + char *cause; /* CAUSE_OF_EVENT */ struct source_citation *citation; struct multimedia_link *mm_link; struct note_sub *note; struct age_value *husband_age; struct age_value *wife_age; struct xref_value *family; - char *adoption_parent; + char *adoption_parent; /* ADOPTED_BY_WHICH_PARENT */ struct user_data *extra; struct event *next; struct event *previous; @@ -162,14 +162,14 @@ struct xref_list { struct xref_list *previous; }; -struct personal_name { - char *name; - char *prefix; - char *given; - char *nickname; - char *surname_prefix; - char *surname; - char *suffix; +struct personal_name { /* PERSONAL_NAME_STRUCTURE */ + char *name; /* NAME_PERSONAL */ + char *prefix; /* NAME_PIECE_PREFIX */ + char *given; /* NAME_PIECE_GIVEN */ + char *nickname; /* NAME_PIECE_NICKNAME */ + char *surname_prefix; /* NAME_PIECE_SURNAME_PREFIX */ + char *surname; /* NAME_PIECE_SURNAME */ + char *suffix; /* NAME_PIECE_SUFFIX */ struct source_citation *citation; struct note_sub *note; struct user_data *extra; @@ -178,13 +178,13 @@ struct personal_name { }; struct pedigree { - char *pedigree; + char *pedigree; /* PEDIGREE_LINKAGE_TYPE */ struct user_data *extra; struct pedigree *next; struct pedigree *previous; }; -struct family_link { +struct family_link { /* CHILD_TO_FAMILY_LINK */ struct xref_value *family; struct pedigree *pedigree; struct note_sub *note; @@ -193,10 +193,10 @@ struct family_link { struct family_link *previous; }; -struct association { +struct association { /* ASSOCIATION_STRUCTURE */ struct xref_value *to; - char *type; - char *relation; + char *type; /* RECORD_TYPE */ + char *relation; /* RELATION_IS_DESCRIPTOR */ struct source_citation *citation; struct note_sub *note; struct user_data *extra; @@ -205,17 +205,17 @@ struct association { }; struct source_event { - char *recorded_events; - struct date_value *date_period; - char *jurisdiction; + char *recorded_events; /* EVENTS_RECORDED */ + struct date_value *date_period; /* DATE_PERIOD */ + char *jurisdiction; /* SOURCE_JURISDICTION_PLACE */ struct user_data *extra; struct source_event *next; struct source_event *previous; }; struct source_description { - char *call_number; - char *media; + char *call_number; /* SOURCE_CALL_NUMBER */ + char *media; /* SOURCE_MEDIA_TYPE */ struct user_data *extra; struct source_description *next; struct source_description *previous; @@ -223,80 +223,80 @@ struct source_description { /* Main structures */ -struct header { +struct header { /* HEADER */ struct header_source { - char *id; - char *name; - char *version; + char *id; /* APPROVED_SYSTEM_ID */ + char *name; /* NAME_OF_PRODUCT */ + char *version; /* VERSION_NUMBER */ struct header_corporation { - char *name; + char *name; /* NAME_OF_BUSINESS */ struct address *address; - char *phone[3]; + char *phone[3]; /* PHONE_NUMBER */ } corporation; struct header_data { - char *name; - struct date_value *date; - char *copyright; + char *name; /* NAME_OF_SOURCE_DATA */ + struct date_value *date; /* PUBLICATION_DATE */ + char *copyright; /* COPYRIGHT_SOURCE_DATA */ } data; } source; - char *destination; - struct date_value *date; - char *time; + char *destination; /* RECEIVING_SYSTEM_NAME */ + struct date_value *date; /* TRANSMISSION_DATE */ + char *time; /* TIME_VALUE */ struct xref_value *submitter; struct xref_value *submission; - char *filename; - char *copyright; + char *filename; /* FILE_NAME */ + char *copyright; /* COPYRIGHT_GEDCOM_FILE */ struct header_gedcom { - char *version; - char *form; + char *version; /* VERSION_NUMBER */ + char *form; /* GEDCOM_FORM */ } gedcom; struct header_charset { - char *name; - char *version; + char *name; /* CHARACTER_SET */ + char *version; /* VERSION_NUMBER */ } charset; - char *language; - char *place_hierarchy; - char *note; + char *language; /* LANGUAGE_OF_TEXT */ + char *place_hierarchy; /* PLACE_HIERARCHY */ + char *note; /* GEDCOM_CONTENT_DESCRIPTION */ struct user_data *extra; }; -struct submission { +struct submission { /* SUBMISSION_RECORD */ char *xrefstr; struct xref_value *submitter; - char *family_file; - char *temple_code; - char *nr_of_ancestor_gens; - char *nr_of_descendant_gens; - char *ordinance_process_flag; - char *record_id; + char *family_file; /* NAME_OF_FAMILY_FILE */ + char *temple_code; /* TEMPLE_CODE */ + char *nr_of_ancestor_gens; /* GENERATIONS_OF_ANCESTORS */ + char *nr_of_descendant_gens; /* GENERATIONS_OF_DESCENDANTS */ + char *ordinance_process_flag; /* ORDINANCE_PROCESS_FLAG */ + char *record_id; /* AUTOMATED_RECORD_ID */ struct user_data *extra; }; -struct family { +struct family { /* FAM_RECORD */ char *xrefstr; struct event *event; struct xref_value *husband; struct xref_value *wife; struct xref_list *children; - char *nr_of_children; + char *nr_of_children; /* COUNT_OF_CHILDREN */ struct xref_list *submitters; struct lds_event *lds_spouse_sealing; struct source_citation *citation; struct multimedia_link *mm_link; struct note_sub *note; struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct family *next; struct family *previous; }; -struct individual { +struct individual { /* INDIVIDUAL_RECORD */ char *xrefstr; - char *restriction_notice; + char *restriction_notice; /* RESTRICTION_NOTICE */ struct personal_name *name; - char *sex; + char *sex; /* SEX_VALUE */ struct event *event; struct event *attribute; struct lds_event *lds_individual_ordinance; @@ -310,69 +310,69 @@ struct individual { struct source_citation *citation; struct multimedia_link *mm_link; struct note_sub *note; - char *record_file_nr; - char *ancestral_file_nr; + char *record_file_nr; /* PERMANENT_RECORD_FILE_NUMBER */ + char *ancestral_file_nr; /* ANCESTRAL_FILE_NUMBER */ struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct individual *next; struct individual *previous; }; -struct multimedia { +struct multimedia { /* MULTIMEDIA_RECORD */ char *xrefstr; - char *form; - char *title; + char *form; /* MULTIMEDIA_FORMAT */ + char *title; /* DESCRIPTIVE_TITLE */ struct note_sub *note; - char *data; + char *data; /* ENCODED_MULTIMEDIA_LINE */ struct xref_value *continued; struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct multimedia *next; struct multimedia *previous; }; -struct note { +struct note { /* NOTE_RECORD */ char *xrefstr; - char *text; + char *text; /* SUBMITTER_TEXT */ struct source_citation *citation; struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct note *next; struct note *previous; }; -struct repository { +struct repository { /* REPOSITORY_RECORD */ char *xrefstr; - char *name; + char *name; /* NAME_OF_REPOSITORY */ struct address *address; - char *phone[3]; + char *phone[3]; /* PHONE_NUMBER */ struct note_sub *note; struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct repository *next; struct repository *previous; }; -struct source { +struct source { /* SOURCE_RECORD */ char *xrefstr; struct source_data { struct source_event *event; - char *agency; + char *agency; /* RESPONSIBLE_AGENCY */ struct note_sub *note; } data; - char *author; - char *title; - char *abbreviation; - char *publication; - char *text; + char *author; /* SOURCE_ORIGINATOR */ + char *title; /* SOURCE_DESCRIPTIVE_TITLE */ + char *abbreviation; /* SOURCE_FILED_BY_ENTRY */ + char *publication; /* SOURCE_PUBLICATION_FACTS */ + char *text; /* TEXT_FROM_SOURCE */ struct repo_link { struct xref_value *link; struct note_sub *note; @@ -381,22 +381,22 @@ struct source { struct multimedia_link *mm_link; struct note_sub *note; struct user_ref_number *ref; - char *record_id; + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct source *next; struct source *previous; }; -struct submitter { +struct submitter { /* SUBMITTER_RECORD */ char *xrefstr; - char *name; + char *name; /* SUBMITTER_NAME */ struct address *address; - char *phone[3]; + char *phone[3]; /* PHONE_NUMBER */ struct multimedia_link *mm_link; - char *language[3]; - char *record_file_nr; - char *record_id; + char *language[3]; /* LANGUAGE_PREFERENCE */ + char *record_file_nr; /* SUBMITTER_REGISTERED_RFN */ + char *record_id; /* AUTOMATED_RECORD_ID */ struct change_date *change_date; struct user_data *extra; struct submitter *next;