Ejemplo n.º 1
0
        private AlgorithmType ParseAlgorithmType()
        {
            var result = StaticParser.ParseAlgorithmType(enumerator.Current);

            enumerator.MoveNext();
            return(result);
        }
Ejemplo n.º 2
0
        private StorageType ParseStorageType()
        {
            var result = StaticParser.ParseStorageType(enumerator.Current);

            enumerator.MoveNext();
            return(result);
        }
Ejemplo n.º 3
0
        public ParsedData Parse()
        {
            CheckArguments(2);
            var dataFile   = ParseDataFile();
            var backupType = StaticParser.ParseBackupType(enumerator.Current);

            enumerator.Dispose();

            return(new ParsedData(ActionType.CreateRestore, dataFile, backupType));
        }
Ejemplo n.º 4
0
        private HybridAlgorithm ParseHybridAlgorithm()
        {
            var combinationType = StaticParser.ParseCombinationType(enumerator.Current);
            var algorithms      = new List <Algorithm>();

            while (enumerator.MoveNext())
            {
                var algorithmType = ParseAlgorithmType();
                algorithms.Add(ParseAlgorithm(algorithmType));
            }

            return(new HybridAlgorithm(algorithms, combinationType));
        }