3 This file is part of the HandBrake source code.
\r
4 Homepage: <http://handbrake.fr>.
\r
5 It may be used under the terms of the GNU General Public License. */
\r
8 using System.Collections.Generic;
\r
9 using System.Windows.Forms;
\r
12 namespace Handbrake.Parsing
\r
16 /// An object representing a scanned DVD
\r
21 private List<Title> m_titles;
\r
23 /// Collection of Titles associated with this DVD
\r
25 public List<Title> Titles
\r
29 return this.m_titles;
\r
34 /// Default constructor for this object
\r
38 this.m_titles = new List<Title>();
\r
41 public static DVD Parse(StreamReader output)
\r
43 DVD thisDVD = new DVD();
\r
46 while (!output.EndOfStream)
\r
48 if ((char)output.Peek() == '+')
\r
49 thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
\r
54 catch (Exception exc)
\r
56 MessageBox.Show("DVD.CS - Parse" + exc.ToString());
\r