Example #1
0
        public STDFRecord IDXReadSkipNextRecord(STDFRecordKeys sf)
        {
            if (this.RecIndexList == null)
            {
                this.MakeIndex();
            }
            else
            {
                this.RecIndex++;
            }
            if (this.RecIndex >= this.RecIndexList.Count)
            {
                this.RecIndex = 0;
            }
            int num = 0;

            for (int i = this.RecIndex; num < this.RecIndexList.Count; i++)
            {
                if (i >= this.RecIndexList.Count)
                {
                    i = 0;
                }
                if (this.RecIndexList[i].Key != sf)
                {
                    this.RecIndex = i;
                    break;
                }
                num++;
            }
            return(this.ReadRecord(this.RecIndexList[this.RecIndex]));
        }
Example #2
0
        public STDFRecord IDXReadSkipPreviousRecord(STDFRecordKeys sf)
        {
            if (this.RecIndexList == null)
            {
                this.MakeIndex();
            }
            else
            {
                this.RecIndex--;
            }
            if (this.RecIndex < 0)
            {
                this.RecIndex = this.RecIndexList.Count - 1;
            }
            int num = 0;

            for (int i = this.RecIndex; num < this.RecIndexList.Count; i--)
            {
                if (i < 0)
                {
                    i = this.RecIndexList.Count - 1;
                }
                if (this.RecIndexList[i].Key != sf)
                {
                    this.RecIndex = i;
                    break;
                }
                num++;
            }
            return(this.ReadRecord(this.RecIndexList[this.RecIndex]));
        }
Example #3
0
        public STDFRecord GoToTestNumber(int TestNumber)
        {
            STDFRecordKeys keys    = STDFRecordKeys.FTR | STDFRecordKeys.MPR | STDFRecordKeys.PTR;
            PTRRecord      record  = null;
            MPRRecord      record2 = null;
            FTRRecord      record3 = null;
            STDFRecord     record4 = null;

            if (this.RecIndexList == null)
            {
                this.MakeIndex();
            }
            this.RecIndex++;
            if (this.RecIndex > this.RecIndexList.Count)
            {
                this.RecIndex = 0;
            }
            int num = 0;

            for (int i = this.RecIndex; num < this.RecIndexList.Count; i++)
            {
                if (i >= this.RecIndexList.Count)
                {
                    i = 0;
                }
                if ((this.RecIndexList[i].Key & keys) != STDFRecordKeys.NAN)
                {
                    record4 = this.ReadRecord(this.RecIndexList[i]);
                    if (this.RecIndexList[i].Key == STDFRecordKeys.PTR)
                    {
                        record = (PTRRecord)record4;
                        if (record.TEST_NUM == TestNumber)
                        {
                            this.RecIndex = i;
                            return(record4);
                        }
                    }
                    else if (this.RecIndexList[i].Key == STDFRecordKeys.MPR)
                    {
                        record2 = (MPRRecord)record4;
                        if (record2.TEST_NUM == TestNumber)
                        {
                            this.RecIndex = i;
                            return(record4);
                        }
                    }
                    else if (this.RecIndexList[i].Key == STDFRecordKeys.FTR)
                    {
                        record3 = (FTRRecord)record4;
                        if (record3.TEST_NUM == TestNumber)
                        {
                            this.RecIndex = i;
                            return(record4);
                        }
                    }
                }
                num++;
            }
            return(record4);
        }
 public STDFRecordIndex(STDFRecordType rType, ushort rLength, long fPosition, uint rNumber, STDFRecordKeys rKey)
 {
     this.RecordType = rType;
     this.RecordLength = rLength;
     this.FilePosition = fPosition;
     this.RecordNumber = rNumber;
     this.Key = rKey;
 }
 public STDFRecordIndex(STDFRecordType rType, ushort rLength, long fPosition, uint rNumber, STDFRecordKeys rKey)
 {
     this.RecordType = rType;
     this.RecordLength = rLength;
     this.FilePosition = fPosition;
     this.RecordNumber = rNumber;
     this.Key = rKey;
 }
Example #6
0
 public static STDFRecordType RecordLookup(STDFRecordKeys rk)
 {
     if (rk == STDFRecordKeys.PTR)
     {
         return(STDFRecordType.PTR);
     }
     if (rk == STDFRecordKeys.PIR)
     {
         return(STDFRecordType.PIR);
     }
     if (rk == STDFRecordKeys.PRR)
     {
         return(STDFRecordType.PRR);
     }
     if (rk == STDFRecordKeys.PMR)
     {
         return(STDFRecordType.PMR);
     }
     if (rk == STDFRecordKeys.PGR)
     {
         return(STDFRecordType.PGR);
     }
     if (rk == STDFRecordKeys.RDR)
     {
         return(STDFRecordType.RDR);
     }
     if (rk == STDFRecordKeys.TSR)
     {
         return(STDFRecordType.TSR);
     }
     if (rk == STDFRecordKeys.BPS)
     {
         return(STDFRecordType.BPS);
     }
     if (rk == STDFRecordKeys.SDR)
     {
         return(STDFRecordType.SDR);
     }
     if (rk == STDFRecordKeys.SBR)
     {
         return(STDFRecordType.SBR);
     }
     if (rk == STDFRecordKeys.HBR)
     {
         return(STDFRecordType.HBR);
     }
     if (rk == STDFRecordKeys.PLR)
     {
         return(STDFRecordType.PLR);
     }
     if (rk == STDFRecordKeys.PCR)
     {
         return(STDFRecordType.PCR);
     }
     if (rk == STDFRecordKeys.FTR)
     {
         return(STDFRecordType.FTR);
     }
     if (rk == STDFRecordKeys.MPR)
     {
         return(STDFRecordType.MPR);
     }
     if (rk == STDFRecordKeys.ATR)
     {
         return(STDFRecordType.ATR);
     }
     if (rk == STDFRecordKeys.WRR)
     {
         return(STDFRecordType.WRR);
     }
     if (rk == STDFRecordKeys.WCR)
     {
         return(STDFRecordType.WCR);
     }
     if (rk == STDFRecordKeys.WIR)
     {
         return(STDFRecordType.WIR);
     }
     if (rk == STDFRecordKeys.MIR)
     {
         return(STDFRecordType.MIR);
     }
     if (rk == STDFRecordKeys.MRR)
     {
         return(STDFRecordType.MRR);
     }
     if (rk == STDFRecordKeys.FAR)
     {
         return(STDFRecordType.FAR);
     }
     if (rk == STDFRecordKeys.GDR)
     {
         return(STDFRecordType.GDR);
     }
     if (rk == STDFRecordKeys.DTR)
     {
         return(STDFRecordType.DTR);
     }
     if (rk == STDFRecordKeys.GDR)
     {
         return(STDFRecordType.GDR);
     }
     if (rk == STDFRecordKeys.EPS)
     {
         return(STDFRecordType.EPS);
     }
     return(STDFRecordType.NAN);
 }
 public static STDFRecordType RecordLookup(STDFRecordKeys rk)
 {
     if (rk == STDFRecordKeys.PTR)
     {
         return STDFRecordType.PTR;
     }
     if (rk == STDFRecordKeys.PIR)
     {
         return STDFRecordType.PIR;
     }
     if (rk == STDFRecordKeys.PRR)
     {
         return STDFRecordType.PRR;
     }
     if (rk == STDFRecordKeys.PMR)
     {
         return STDFRecordType.PMR;
     }
     if (rk == STDFRecordKeys.PGR)
     {
         return STDFRecordType.PGR;
     }
     if (rk == STDFRecordKeys.RDR)
     {
         return STDFRecordType.RDR;
     }
     if (rk == STDFRecordKeys.TSR)
     {
         return STDFRecordType.TSR;
     }
     if (rk == STDFRecordKeys.BPS)
     {
         return STDFRecordType.BPS;
     }
     if (rk == STDFRecordKeys.SDR)
     {
         return STDFRecordType.SDR;
     }
     if (rk == STDFRecordKeys.SBR)
     {
         return STDFRecordType.SBR;
     }
     if (rk == STDFRecordKeys.HBR)
     {
         return STDFRecordType.HBR;
     }
     if (rk == STDFRecordKeys.PLR)
     {
         return STDFRecordType.PLR;
     }
     if (rk == STDFRecordKeys.PCR)
     {
         return STDFRecordType.PCR;
     }
     if (rk == STDFRecordKeys.FTR)
     {
         return STDFRecordType.FTR;
     }
     if (rk == STDFRecordKeys.MPR)
     {
         return STDFRecordType.MPR;
     }
     if (rk == STDFRecordKeys.ATR)
     {
         return STDFRecordType.ATR;
     }
     if (rk == STDFRecordKeys.WRR)
     {
         return STDFRecordType.WRR;
     }
     if (rk == STDFRecordKeys.WCR)
     {
         return STDFRecordType.WCR;
     }
     if (rk == STDFRecordKeys.WIR)
     {
         return STDFRecordType.WIR;
     }
     if (rk == STDFRecordKeys.MIR)
     {
         return STDFRecordType.MIR;
     }
     if (rk == STDFRecordKeys.MRR)
     {
         return STDFRecordType.MRR;
     }
     if (rk == STDFRecordKeys.FAR)
     {
         return STDFRecordType.FAR;
     }
     if (rk == STDFRecordKeys.GDR)
     {
         return STDFRecordType.GDR;
     }
     if (rk == STDFRecordKeys.DTR)
     {
         return STDFRecordType.DTR;
     }
     if (rk == STDFRecordKeys.GDR)
     {
         return STDFRecordType.GDR;
     }
     if (rk == STDFRecordKeys.EPS)
     {
         return STDFRecordType.EPS;
     }
     return STDFRecordType.NAN;
 }
 public STDFRecord IDXReadSkipPreviousRecord(STDFRecordKeys sf)
 {
     if (this.RecIndexList == null)
     {
         this.MakeIndex();
     }
     else
     {
         this.RecIndex--;
     }
     if (this.RecIndex < 0)
     {
         this.RecIndex = this.RecIndexList.Count - 1;
     }
     int num = 0;
     for (int i = this.RecIndex; num < this.RecIndexList.Count; i--)
     {
         if (i < 0)
         {
             i = this.RecIndexList.Count - 1;
         }
         if (this.RecIndexList[i].Key != sf)
         {
             this.RecIndex = i;
             break;
         }
         num++;
     }
     return this.ReadRecord(this.RecIndexList[this.RecIndex]);
 }
 public STDFRecord IDXReadSkipNextRecord(STDFRecordKeys sf)
 {
     if (this.RecIndexList == null)
     {
         this.MakeIndex();
     }
     else
     {
         this.RecIndex++;
     }
     if (this.RecIndex >= this.RecIndexList.Count)
     {
         this.RecIndex = 0;
     }
     int num = 0;
     for (int i = this.RecIndex; num < this.RecIndexList.Count; i++)
     {
         if (i >= this.RecIndexList.Count)
         {
             i = 0;
         }
         if (this.RecIndexList[i].Key != sf)
         {
             this.RecIndex = i;
             break;
         }
         num++;
     }
     return this.ReadRecord(this.RecIndexList[this.RecIndex]);
 }