private AlgorithmType ParseAlgorithmType() { var result = StaticParser.ParseAlgorithmType(enumerator.Current); enumerator.MoveNext(); return(result); }
private StorageType ParseStorageType() { var result = StaticParser.ParseStorageType(enumerator.Current); enumerator.MoveNext(); return(result); }
public ParsedData Parse() { CheckArguments(2); var dataFile = ParseDataFile(); var backupType = StaticParser.ParseBackupType(enumerator.Current); enumerator.Dispose(); return(new ParsedData(ActionType.CreateRestore, dataFile, backupType)); }
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)); }