/[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

--- trunk/libxmltv/Core/XMLTVParser.cs	2013/03/09 01:46:42	71
+++ trunk/libxmltv/Core/XMLTVParser.cs	2013/03/09 09:29:40	72
@@ -1,56 +1,56 @@
-//#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();
-        }
-    }
-}
+////#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 : XMLTVBase, IDisposable
+//    {
+//        //private XMLTVRuntimeInstance instance;
+
+//        //internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
+//        //{
+//        //    using (XMLTVParser g = new XMLTVParser(xmltv)) { }
+//        //}
+
+
+//        protected XMLTVParser(XMLTVRuntimeInstance instance) : base(instance)
+//        {
+//            xmltv_logger.Debug.WriteLine("Creating Instance of XMLTVParser");
+            
+//            xmltv_logger.Debug.WriteLine("Created Instance of XMLTVParser");
+//        }
+
+//        #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();
+//        }
+//    }
+//}

 

  ViewVC Help
Powered by ViewVC 1.1.22