Esempio n. 1
0
        public GDMGroupRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType._GROUP);

            fGroupName = string.Empty;
            fMembers   = new GDMList <GDMIndividualLink>(this);
        }
Esempio n. 2
0
        public GDMFileReference(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.FILE);

            fMultimediaFormat = GDMMultimediaFormat.mfNone;
            fMediaType        = GDMMediaType.mtUnknown;
        }
Esempio n. 3
0
        public GDMSourceEvent(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.EVEN);

            fDate  = new GDMDatePeriod(this);
            fPlace = new GDMPlace(this);
        }
Esempio n. 4
0
        public GDMCommunicationRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType._COMM);

            fDate         = new GDMDate(this);
            fCorresponder = new GDMIndividualLink(this);
        }
Esempio n. 5
0
        public GDMRepositoryRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.REPO);

            fAddress        = new GDMAddress(this);
            fRepositoryName = string.Empty;
        }
Esempio n. 6
0
        public GDMSourceData(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.DATA);

            fAgency = string.Empty;
            fEvents = new GDMList <GDMSourceEvent>(this);
        }
Esempio n. 7
0
        public GDMTaskRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType._TASK);

            fStartDate = new GDMDate(this, (int)GEDCOMTagType._STARTDATE, string.Empty);
            fStopDate  = new GDMDate(this, (int)GEDCOMTagType._STOPDATE, string.Empty);
        }
Esempio n. 8
0
        public virtual GDMTree GetTree()
        {
            GDMTree owner = null;

            GDMTag current = this;

            while (current != null)
            {
                GDMObject parent = current.fOwner;

                var parentTag = parent as GDMTag;
                if (parentTag != null)
                {
                    current = parentTag;
                }
                else
                {
                    var parentTree = parent as GDMTree;
                    if (parentTree != null)
                    {
                        owner = parentTree;
                    }
                    break;
                }
            }

            return(owner);
        }
Esempio n. 9
0
 public GDMTag(GDMObject owner)
 {
     fId          = 0; // Unknown
     fOwner       = owner;
     fTags        = new GDMList <GDMTag>(this);
     fStringValue = string.Empty;
 }
Esempio n. 10
0
        public GDMFamilyRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.FAM);

            fHusband  = new GDMIndividualLink(this, (int)GEDCOMTagType.HUSB, string.Empty);
            fWife     = new GDMIndividualLink(this, (int)GEDCOMTagType.WIFE, string.Empty);
            fChildren = new GDMList <GDMIndividualLink>(this);
        }
Esempio n. 11
0
        public static GDMDate CreateApproximated(GDMObject owner, GDMDate date, GDMApproximated approximated)
        {
            GDMDate result = new GDMDate(owner);

            result.Assign(date);
            result.Approximated = approximated;
            return(result);
        }
Esempio n. 12
0
        public GDMPlace(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.PLAC);

            fForm     = string.Empty;
            fLocation = new GDMPointer(this, (int)GEDCOMTagType._LOC, string.Empty);
            fMap      = new GDMMap(this);
        }
Esempio n. 13
0
        public GDMSourceCitation(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.SOUR);

            fCertaintyAssessment = -1;
            fDescription         = new StringList();
            fPage = string.Empty;
        }
Esempio n. 14
0
        public GDMPersonalName(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.NAME);

            fPieces    = new GDMPersonalNamePieces(this);
            fFirstPart = string.Empty;
            fSurname   = string.Empty;
            fLastPart  = string.Empty;
        }
Esempio n. 15
0
        public GDMSubmitterRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.SUBM);

            fAddress             = new GDMAddress(this);
            fLanguages           = new GDMList <GDMLanguage>(this);
            fName                = new GDMPersonalName(this);
            fRegisteredReference = string.Empty;
        }
Esempio n. 16
0
 protected GDMCustomEvent(GDMObject owner) : base(owner)
 {
     fAddress         = new GDMAddress(this);
     fDate            = new GDMDateValue(this);
     fPlace           = new GDMPlace(this);
     fNotes           = new GDMList <GDMNotes>(this);
     fSourceCitations = new GDMList <GDMSourceCitation>(this);
     fMultimediaLinks = new GDMList <GDMMultimediaLink>(this);
 }
Esempio n. 17
0
 public GDMRecord(GDMObject owner) : base(owner)
 {
     fAutomatedRecordID = string.Empty;
     fChangeDate        = new GDMChangeDate(this);
     fNotes             = new GDMList <GDMNotes>(this);
     fSourceCitations   = new GDMList <GDMSourceCitation>(this);
     fMultimediaLinks   = new GDMList <GDMMultimediaLink>(this);
     fUserReferences    = new GDMList <GDMUserReference>(this);
 }
Esempio n. 18
0
 public GDMDate(GDMObject owner) : base(owner)
 {
     fApproximated = GDMApproximated.daExact;
     fCalendar     = GDMCalendar.dcGregorian;
     fYear         = UNKNOWN_YEAR;
     fYearBC       = false;
     fYearModifier = string.Empty;
     fMonth        = 0;
     fDay          = 0;
 }
Esempio n. 19
0
        public GDMMultimediaLink(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.OBJE);

            fCutoutPosition  = new GDMCutoutPosition(this);
            fFileReferences  = new GDMList <GDMFileReference>(this);
            fIsPrimary       = false;
            fIsPrimaryCutout = false;
            fTitle           = string.Empty;
        }
Esempio n. 20
0
        public GDMResearchRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType._RESEARCH);

            fStartDate = new GDMDate(this, (int)GEDCOMTagType._STARTDATE, string.Empty);
            fStopDate  = new GDMDate(this, (int)GEDCOMTagType._STOPDATE, string.Empty);

            fTasks          = new GDMList <GDMPointer>(this);
            fCommunications = new GDMList <GDMPointer>(this);
            fGroups         = new GDMList <GDMPointer>(this);
        }
Esempio n. 21
0
        public GDMSubmissionRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.SUBN);

            fFamilyFileName           = string.Empty;
            fTempleCode               = string.Empty;
            fGenerationsOfAncestors   = -1;
            fGenerationsOfDescendants = -1;
            fOrdinanceProcessFlag     = GDMOrdinanceProcessFlag.opNone;
            fSubmitter = new GDMPointer(this, (int)GEDCOMTagType.SUBM, string.Empty);
        }
Esempio n. 22
0
        public GDMIndividualRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.INDI);

            fAliases             = new GDMList <GDMAlias>(this);
            fAssociations        = new GDMList <GDMAssociation>(this);
            fChildToFamilyLinks  = new GDMList <GDMChildToFamilyLink>(this);
            fGroups              = new GDMList <GDMPointer>(this);
            fPersonalNames       = new GDMList <GDMPersonalName>(this);
            fSpouseToFamilyLinks = new GDMList <GDMSpouseToFamilyLink>(this);
        }
Esempio n. 23
0
        public GDMPersonalName(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.NAME);

            fFirstPart = string.Empty;
            fSurname   = string.Empty;
            fLastPart  = string.Empty;

            fPieces          = new GDMPersonalNamePieces(this);
            fNotes           = new GDMList <GDMNotes>(this);
            fSourceCitations = new GDMList <GDMSourceCitation>(this);
        }
Esempio n. 24
0
        public GDMSourceRecord(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.SOUR);

            fData                = new GDMSourceData(this);
            fOriginator          = new GDMTextTag(this, (int)GEDCOMTagType.AUTH);
            fPublication         = new GDMTextTag(this, (int)GEDCOMTagType.PUBL);
            fRepositoryCitations = new GDMList <GDMRepositoryCitation>(this);
            fShortTitle          = string.Empty;
            fText                = new GDMTextTag(this, (int)GEDCOMTagType.TEXT);
            fTitle               = new GDMTextTag(this, (int)GEDCOMTagType.TITL);
        }
Esempio n. 25
0
 public GDMPersonalNamePieces(GDMObject owner) : base(owner)
 {
     fPrefix         = string.Empty;
     fGiven          = string.Empty;
     fNickname       = string.Empty;
     fSurnamePrefix  = string.Empty;
     fSurname        = string.Empty;
     fSuffix         = string.Empty;
     fPatronymicName = string.Empty;
     fMarriedName    = string.Empty;
     fReligiousName  = string.Empty;
     fCensusName     = string.Empty;
 }
Esempio n. 26
0
        public GDMHeader(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.HEAD);

            fCharacterSet = new GDMHeaderCharSet(this);
            fFile         = new GDMHeaderFile(this);
            fGEDCOM       = new GDMHeaderGEDCOM(this);
            fNote         = new GDMTextTag(this, (int)GEDCOMTagType.NOTE);
            fPlace        = new GDMPlace(this);
            fSource       = new GDMHeaderSource(this);
            fSubmission   = new GDMPointer(this, (int)GEDCOMTagType.SUBN, string.Empty);
            fSubmitter    = new GDMPointer(this, (int)GEDCOMTagType.SUBM, string.Empty);
        }
Esempio n. 27
0
        public static GDMDatePeriod CreatePeriod(GDMObject owner, GDMDate dateFrom, GDMDate dateTo)
        {
            GDMDatePeriod result = new GDMDatePeriod(owner);

            if (dateFrom != null)
            {
                result.DateFrom.Assign(dateFrom);
            }
            if (dateTo != null)
            {
                result.DateTo.Assign(dateTo);
            }
            return(result);
        }
Esempio n. 28
0
        public static GDMDateRange CreateRange(GDMObject owner, GDMDate dateAfter, GDMDate dateBefore)
        {
            GDMDateRange result = new GDMDateRange(owner);

            if (dateAfter != null)
            {
                result.After.Assign(dateAfter);
            }
            if (dateBefore != null)
            {
                result.Before.Assign(dateBefore);
            }
            return(result);
        }
Esempio n. 29
0
        public GDMAddress(GDMObject owner) : base(owner)
        {
            SetName(GEDCOMTagType.ADDR);

            fLines             = new GDMLines();
            fAddressLine1      = string.Empty;
            fAddressLine2      = string.Empty;
            fAddressLine3      = string.Empty;
            fAddressCity       = string.Empty;
            fAddressState      = string.Empty;
            fAddressPostalCode = string.Empty;
            fAddressCountry    = string.Empty;

            fPhoneList = new GDMList <GDMTag>(this);
            fEmailList = new GDMList <GDMTag>(this);
            fFaxList   = new GDMList <GDMTag>(this);
            fWWWList   = new GDMList <GDMTag>(this);
        }
Esempio n. 30
0
 public GDMDatePeriod(GDMObject owner) : base(owner)
 {
     fDateFrom = new GDMDate(this);
     fDateTo   = new GDMDate(this);
 }