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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 36 by william, Fri Mar 8 02:13:59 2013 UTC revision 44 by william, Fri Mar 8 03:36:44 2013 UTC
# Line 9  using System.Xml.Linq; Line 9  using System.Xml.Linq;
9    
10  namespace libxmltv.Core  namespace libxmltv.Core
11  {  {
12      internal class XMLTVParser //: IXMLTV_PARSER      internal class XMLTVParser : IDisposable
13      {      {
14          private XMLTVRuntimeInstance instance;          private XMLTVRuntimeInstance instance;
15          public XMLTVParser(XMLTVRuntimeInstance xmltv)  
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.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVParser");              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVParser");
25              //IXMLTV_LOADER _xmltv;              //IXMLTV_LOADER _xmltv;
# Line 118  namespace libxmltv.Core Line 125  namespace libxmltv.Core
125          }          }
126          private void CreateXMLTVSource()          private void CreateXMLTVSource()
127          {          {
128              XMLTVSource source = new XMLTVSource(instance);              //XMLTVSource source = new XMLTVSource(instance);
129              instance.Source = source;              //instance.Source = source;
130                XMLTVSource.CreateInstance(instance);
131          }          }
132          private void CreateXMLTVChannels()          private void CreateXMLTVChannels()
133          {          {
134              XMLTVChannelCollection channels = new XMLTVChannelCollection(instance);              //XMLTVChannelCollection channels = new XMLTVChannelCollection(instance);
135              instance.Channels = channels.Collection;                          //instance.Channels = channels.Collection;            
136                XMLTVChannelCollection.CreateInstance(instance);
137          }          }
138          private void CreateXMLTVPrograms()          private void CreateXMLTVPrograms()
139          {          {
140              XMLTVProgramCollection programs = new XMLTVProgramCollection(instance);              //XMLTVProgramCollection programs = new XMLTVProgramCollection(instance);
141              instance.Programs = programs.Collection;              //instance.Programs = programs.Collection;
142                XMLTVProgramCollection.CreateInstance(instance);
143          }          }
144          #endregion          #endregion
145    
146            public void Dispose()
147            {
148                //throw new NotImplementedException();
149            }
150      }      }
151  }  }

Legend:
Removed from v.36  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.22