//loop throgh each field
        private void LoopOnFields(IType[] types)
        {
            foreach (IType type in types)
            {
                //Field could be composite or primitive
                IComposite compositeItem = type as IComposite;
                if (compositeItem != null)
                {
                    LoopOnFields((IType[])compositeItem.Components);
                }

                //Here we can find structural issues.
                if (type.ExtraComponents.numComponents() > 0)
                {
                    CSegment _cseg = segments.Where(cseg => cseg.Name.Equals(currentSegment)).First <CSegment>();
                    errorCollection.Add(string.Format("{0}^{1}^{2}^102&Data type error&HL7nnnn", currentSegment, _cseg.Sequence, fieldNumber));
                }
            }
        }
Пример #2
0
 public void Unload()
 {
     this.useLoop = false;
     this.Midi    = "";
     this.times   = -1;
     if (this.CAPathPerformance != null)
     {
         this.CAPathPerformance.StopAll();
     }
     this.CSegment1.ReleaseSegment();
     this.CSegment1.UnloadAllPerformances();
     this.CSegment1.Dispose();
     this.CLoader.Dispose();
     this.COutPort.ReleasePort();
     this.CSegment1 = (CSegment)null;
     this.CLoader   = (CDLSLoader)null;
     this.CSegment1 = new CSegment();
     this.CLoader   = new CDLSLoader();
     this.CLoader.Initialize();
     this.UseDLS = false;
 }
Пример #3
0
        public override AShape CreateShape(string code)
        {
            AShape ans = null;

            if (code == "C")
            {
                ans = new CCircle();
            }
            if (code == "S")
            {
                ans = new CSegment();
            }
            if (code == "P")
            {
                ans = new Polygon();
            }
            if (code == "G")
            {
                ans = new CGroup();
            }
            return(ans);
        }
Пример #4
0
 private static bool CheckSeg_Ray(CSegment col1, CRay col2, Transform2D trans1, Transform2D trans2)
 {
     return(false);
 }
Пример #5
0
 private static bool CheckSeg_Polygon(CSegment col1, CPolygon col2, Transform2D trans1, Transform2D trans2)
 {
     return(false);
 }
Пример #6
0
 private static bool CheckSeg_AABB(CSegment col1, CAABB col2, Transform2D trans1, Transform2D trans2)
 {
     return(false);
 }
Пример #7
0
 private static bool CheckSeg_Circle(CSegment col1, CCircle col2, Transform2D trans1, Transform2D trans2)
 {
     return(false);
 }