//#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse() using System; using System.Collections.Generic; using System.Linq; using System.Text; using libxmltv.Interfaces; using System.Diagnostics; using System.Xml.Linq; namespace libxmltv.Core { internal class XMLTVParser : IDisposable { private XMLTVRuntimeInstance instance; internal static void CreateInstance(XMLTVRuntimeInstance xmltv) { using (XMLTVParser g = new XMLTVParser(xmltv)) { } } protected XMLTVParser(XMLTVRuntimeInstance xmltv) { xmltv_logger.Debug.WriteLine("Creating Instance of XMLTVParser"); instance = xmltv; Create(); } #region Creation Methods private void Create() { CreateXMLTVSource(); CreateXMLTVChannels(); CreateXMLTVPrograms(); xmltv_logger.Info.WriteLine("Parsed Source: '{0}'", instance.Source.SourceName); } private void CreateXMLTVSource() { XMLTVSource.CreateInstance(instance); } private void CreateXMLTVChannels() { XMLTVChannelCollection.CreateInstance(instance); } private void CreateXMLTVPrograms() { XMLTVProgramCollection.CreateInstance(instance); } #endregion public void Dispose() { //throw new NotImplementedException(); } } }