public void Copy(ref structureBuilder sb)
 {
     sb.data     = data;
     sb.count    = count;
     sb.current  = current;
     sb.adrEvEnd = adrEvEnd;
     sb.adrSmEnd = adrSmEnd;
     sb.eio      = eio;
 }
 public structureBuilder(structureBuilder sB)
 {
     data     = sB.data;
     count    = sB.count;
     current  = sB.current;
     adrSmEnd = sB.adrSmEnd;
     adrEvEnd = sB.adrEvEnd;
     eio      = sB.eio;
 }
Example #3
0
        static void Main(string[] args)
        {
            dbgSort();
            return;

            ust_LogFile[] lf;
            FileIO        fio = new FileIO(@"K:\Git\Test\AllLogs");
            Serializer    srl = new Serializer();

            srl.path = @"K:\Git\Test\DBSData.dat";

            fio.searchPattern = "*.xlsx";
            fio.scan();
            lf = new ust_LogFile[fio.logfiles.Length];
            ExcelIO eio = new ExcelIO();

            ProgressBar pb = new ProgressBar(lf.Length);

            pb.percentOutput = false;

            for (int i = 0; i < lf.Length; i++)
            {
                pb.Information = fio.logfiles[i].FileName;
                pb.NextStep();
                pb.Output();
                lf[i].File = fio.logfiles[i];

                eio.Open(lf[i].File.FullPath);

                structureBuilder sb = new structureBuilder(eio);
                sb.buildStructure();

                structureReader sr = new structureReader(sb.getData(), eio);
                sr.Read();
                lf[i].Body = sr.smetalog;

                sb = null;
                sr = null;
                eio.CloseWB();
                System.GC.Collect();
            }
            eio.Quit();

            DBShell dbs = new DBShell();

            foreach (ust_LogFile ulf in lf)
            {
                dbs.AddUstLogFile(ulf);
            }
            srl.obj = dbs;
            srl.Write();

            Console.ReadLine();
        }