Ejemplo n.º 1
0
        public static GEDCOMDatePeriod CreatePeriod(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate dateFrom, GEDCOMDate dateTo)
        {
            GEDCOMDatePeriod result = new GEDCOMDatePeriod(owner, parent, "", "");

            result.DateFrom.Assign(dateFrom);
            result.DateTo.Assign(dateTo);
            return(result);
        }
Ejemplo n.º 2
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtSource);
            SetName("SOUR");

            fRepositoryCitations = new GEDCOMList <GEDCOMRepositoryCitation>(this);
        }
Ejemplo n.º 3
0
        public static GEDCOMDateRange CreateRange(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate dateAfter, GEDCOMDate dateBefore)
        {
            GEDCOMDateRange result = new GEDCOMDateRange(owner, parent, "", "");

            result.After.Assign(dateAfter);
            result.Before.Assign(dateBefore);
            return(result);
        }
Ejemplo n.º 4
0
        public void Test_GEDCOMObject()
        {
            GEDCOMObject obj = new GEDCOMObject();

            obj.ExtData = this;
            Assert.AreEqual(obj.ExtData, this);
            obj.Dispose();
        }
Ejemplo n.º 5
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);

            fNotes           = new GEDCOMList <GEDCOMNotes>(this);
            fSourceCitations = new GEDCOMList <GEDCOMSourceCitation>(this);
            fMultimediaLinks = new GEDCOMList <GEDCOMMultimediaLink>(this);
        }
Ejemplo n.º 6
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtMultimedia);
            SetName("OBJE");

            fFileReferences = new GEDCOMList <GEDCOMFileReferenceWithTitle>(this);
        }
Ejemplo n.º 7
0
        public static GEDCOMDate CreateApproximated(GEDCOMTree owner, GEDCOMObject parent, GEDCOMDate date, GEDCOMApproximated approximated)
        {
            GEDCOMDate result = new GEDCOMDate(owner, parent, "", "");

            result.Assign(date);
            result.Approximated = approximated;
            return(result);
        }
Ejemplo n.º 8
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtGroup);
            SetName("_GROUP");

            fMembers = new GEDCOMList <GEDCOMPointer>(this);
        }
Ejemplo n.º 9
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtFamily);
            SetName("FAM");

            fChildren       = new GEDCOMList <GEDCOMPointer>(this);
            fSpouseSealings = new GEDCOMList <GEDCOMSpouseSealing>(this);
        }
Ejemplo n.º 10
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtResearch);
            SetName("_RESEARCH");

            fTasks          = new GEDCOMList <GEDCOMPointer>(this);
            fCommunications = new GEDCOMList <GEDCOMPointer>(this);
            fGroups         = new GEDCOMList <GEDCOMPointer>(this);
        }
Ejemplo n.º 11
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            fRecordType = GEDCOMRecordType.rtNone;

            fNotes           = new GEDCOMList <GEDCOMNotes>(this);
            fSourceCitations = new GEDCOMList <GEDCOMSourceCitation>(this);
            fMultimediaLinks = new GEDCOMList <GEDCOMMultimediaLink>(this);
            fUserReferences  = new GEDCOMList <GEDCOMUserReference>(this);
        }
Ejemplo n.º 12
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetName("ADDR");

            fPhoneList = new GEDCOMList <GEDCOMTag>(this);
            fEmailList = new GEDCOMList <GEDCOMTag>(this);
            fFaxList   = new GEDCOMList <GEDCOMTag>(this);
            fWWWList   = new GEDCOMList <GEDCOMTag>(this);
        }
Ejemplo n.º 13
0
        public GEDCOMTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
        {
            CreateObj(owner, parent);

            if (tagName != "" || tagValue != "")
            {
                SetName(tagName);
                SetStringValue(tagValue);
            }
        }
Ejemplo n.º 14
0
        public void testCreate()
        {
            GEDCOMTree   owner     = null;
            GEDCOMObject parent    = null;
            string       tagName   = "";
            string       tagValue  = "";
            GEDCOMTag    expResult = null;
            GEDCOMTag    result    = GEDCOMPersonalName.Create(owner, parent, tagName, tagValue);

            Assert.IsNotNull(result);
        }
Ejemplo n.º 15
0
        public GEDCOMTag CreateTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
        {
            TagConstructor constructor;

            if (fConstructors.TryGetValue(tagName, out constructor))
            {
                return(constructor(owner, parent, tagName, tagValue));
            }

            return(null);
        }
Ejemplo n.º 16
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetName("NAME");

            fPieces = new GEDCOMPersonalNamePieces(owner, this, "", "");
            fPieces.SetLevel(Level);

            fFirstPart = "";
            fSurname   = "";
            fLastPart  = "";
        }
Ejemplo n.º 17
0
        public void testCreate()
        {
            GEDCOMTree   owner     = null;
            GEDCOMObject parent    = null;
            string       tagName   = "BLAH";
            string       tagValue  = "";
            GEDCOMTag    expResult = null;
            GEDCOMTag    result    = GEDCOMDate.Create(owner, parent, tagName, tagValue);

            Assert.IsNotNull(result);
            Assert.AreEqual(tagName, result.Name);
        }
Ejemplo n.º 18
0
        public GEDCOMTag(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
        {
            CreateObj(owner, parent);

            if (!string.IsNullOrEmpty(tagName))
            {
                SetName(tagName);
            }

            if (!string.IsNullOrEmpty(tagValue))
            {
                SetStringValue(tagValue);
            }
        }
Ejemplo n.º 19
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetName("DATE");

            fApproximated = GEDCOMApproximated.daExact;
            fCalendar     = GEDCOMCalendar.dcGregorian;
            fYear         = UNKNOWN_YEAR;
            fYearBC       = false;
            fYearModifier = "";
            fMonth        = "";
            fDay          = 0;
            fDateFormat   = GEDCOMDateFormat.dfGEDCOMStd;
        }
Ejemplo n.º 20
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtIndividual);
            SetName("INDI");

            fPersonalNames        = new GEDCOMList <GEDCOMPersonalName>(this);
            fIndividualOrdinances = new GEDCOMList <GEDCOMIndividualOrdinance>(this);
            fChildToFamilyLinks   = new GEDCOMList <GEDCOMChildToFamilyLink>(this);
            fSpouseToFamilyLinks  = new GEDCOMList <GEDCOMSpouseToFamilyLink>(this);
            fSubmittors           = new GEDCOMList <GEDCOMPointer>(this);
            fAssociations         = new GEDCOMList <GEDCOMAssociation>(this);
            fAliasses             = new GEDCOMList <GEDCOMAlias>(this);
            fAncestorsInterest    = new GEDCOMList <GEDCOMPointer>(this);
            fDescendantsInterest  = new GEDCOMList <GEDCOMPointer>(this);
            fGroups = new GEDCOMList <GEDCOMPointer>(this);
        }
Ejemplo n.º 21
0
        protected virtual void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            fOwner       = owner;
            fParent      = parent;
            fTags        = new GEDCOMList <GEDCOMTag>(this);
            fStringValue = "";

            GEDCOMTag parentTag = parent as GEDCOMTag;

            if (parentTag != null)
            {
                fLevel = parentTag.Level + 1;
            }
            else
            {
                fLevel = 0;
            }
        }
Ejemplo n.º 22
0
        public void ResetOwner(GEDCOMTree newOwner)
        {
            fOwner = newOwner;

            if (fDataList == null)
            {
                return;
            }

            int num = fDataList.Count;

            for (int i = 0; i < num; i++)
            {
                GEDCOMTag item = fDataList[i] as GEDCOMTag;
                if (item != null)
                {
                    item.ResetOwner(newOwner);
                }
            }
        }
Ejemplo n.º 23
0
 protected GEDCOMRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Ejemplo n.º 24
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMAddress(owner, parent, tagName, tagValue));
 }
Ejemplo n.º 25
0
 public GEDCOMAddress(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Ejemplo n.º 26
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     SetName("SOUR");
 }
Ejemplo n.º 27
0
 public GEDCOMSourceCitation(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Ejemplo n.º 28
0
 public void ResetParent(GEDCOMObject parent)
 {
     fParent = parent;
 }
Ejemplo n.º 29
0
 public GEDCOMFamilyRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Ejemplo n.º 30
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMIndividualRecord(owner, parent, tagName, tagValue));
 }