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
7 using System.Collections.Generic;
\r
10 namespace Handbrake.Parsing
\r
13 /// An object representing a scanned DVD
\r
17 private readonly List<Title> m_titles;
\r
20 /// Default constructor for this object
\r
24 m_titles = new List<Title>();
\r
28 /// Collection of Titles associated with this DVD
\r
30 public List<Title> Titles
\r
32 get { return m_titles; }
\r
35 public static DVD Parse(StreamReader output)
\r
37 var thisDVD = new DVD();
\r
39 while (!output.EndOfStream)
\r
41 if ((char) output.Peek() == '+')
\r
42 thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
\r