/** * Reads a queue string into and builds a transformation queue from it. */ public TransformationQueue Read(string _s, bool fromHash = false) { MatchCollection queueExist = TransformationQueue.queueExistParse.Matches(_s); if (queueExist.Count == 0) { throw new Exception("Cannot read queue string " + _s); } TransformationQueue tQueue = new TransformationQueue(); MatchCollection jobExist = TransformationQueue.queueEntryParse.Matches(_s); if (jobExist.Count == 0) { Log.Out("No jobs found."); return(tQueue); } foreach (Match matchJob in jobExist) { Log.Out("Matched: " + matchJob.ToString()); tQueue.Add(TransformationJob.Read(matchJob.ToString(), fromHash)); } return(tQueue); }