Exemple #1
0
        public DataReader(
            revCore.Config revConfig,
            string imageList
            )
        {
            _imageList = imageList;

            var statusDir    = Path.GetDirectoryName(imageList);
            var justFileName = Path.GetFileNameWithoutExtension(imageList);

            var statusFile = Path.Combine(statusDir, $"{justFileName}.doneStatus.txt");

            Console.WriteLine($"using status file {statusFile}");

            if (File.Exists(statusFile))
            {
                using (var file = new System.IO.StreamReader(statusFile))
                {
                    string line;
                    while ((line = file.ReadLine()) != null)
                    {
                        _doneMap[line] = true;
                    }
                }
            }

            _statusWriter = File.AppendText(statusFile);

            _rev = new revCore.Rev(revConfig);



            Console.WriteLine("All initialized");
        }
Exemple #2
0
 public ExportDoc(revCore.Config revConfig, MyConfig myConfig)
 {
     _rev      = revConfig;
     _myconfig = myConfig;
 }