/[xmltv_parser]/trunk/libxmltv/Core/XMLTVParser.cs
ViewVC logotype

Contents of /trunk/libxmltv/Core/XMLTVParser.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69 - (show annotations) (download)
Sat Mar 9 01:36:49 2013 UTC (7 years, 8 months ago) by william
File size: 1492 byte(s)

1 //#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using libxmltv.Interfaces;
7 using System.Diagnostics;
8 using System.Xml.Linq;
9
10 namespace libxmltv.Core
11 {
12 internal class XMLTVParser : IDisposable
13 {
14 private XMLTVRuntimeInstance instance;
15
16 internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
17 {
18 using (XMLTVParser g = new XMLTVParser(xmltv)) { }
19 }
20
21
22 protected XMLTVParser(XMLTVRuntimeInstance xmltv)
23 {
24 xmltv_logger.Debug.WriteLine("Creating Instance of XMLTVParser");
25 instance = xmltv;
26 Create();
27 }
28
29 #region Creation Methods
30 private void Create()
31 {
32 CreateXMLTVSource();
33 CreateXMLTVChannels();
34 CreateXMLTVPrograms();
35 }
36 private void CreateXMLTVSource()
37 {
38 XMLTVSource.CreateInstance(instance);
39 }
40 private void CreateXMLTVChannels()
41 {
42 XMLTVChannelCollection.CreateInstance(instance);
43 }
44 private void CreateXMLTVPrograms()
45 {
46 XMLTVProgramCollection.CreateInstance(instance);
47 }
48 #endregion
49
50 public void Dispose()
51 {
52 //throw new NotImplementedException();
53 }
54 }
55 }

  ViewVC Help
Powered by ViewVC 1.1.22