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

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

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

--- trunk/libxmltv/Core/XMLTV.cs	2013/03/07 11:08:48	23
+++ trunk/libxmltv/Core/XMLTV.cs	2013/03/08 02:13:59	36
@@ -12,22 +12,31 @@
     public static class XMLTV
     {
         static XMLTV() { XMLTV_LOGGER.Initialize(); }
-        public static object CreateLoader(string xml_file)
-        {          
-            XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
-            return loader;
-        }
-        public static object CreateParser(object xmltv)
-        {
-            XMLTV_PARSER parser = new XMLTV_PARSER(xmltv);
-            return parser;
-        }
 
-        public static IXMLTV_PARSER GetParser(object xmltv)
-        {
-            IXMLTV_PARSER _xmltv;
-            if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return null; }
-            return _xmltv;
-        }
+
+        public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return new XMLTVRuntimeInstance(xml_file); }
+
+        //private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv)
+        //{
+        //    //XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
+        //    //return loader;
+        //    //XMLTVRuntimeInstance instance = CreateInstance(xml_file);
+        //    //return instance;
+        //    //xmltv = CreateInstance(xml_file);
+        //    xmltv = null;
+        //}
+        //private static void CreateParser(out XMLTVRuntimeInstance xmltv)
+        //{
+        //    //XMLTV_PARSER parser = new XMLTV_PARSER(xmltv);
+        //    //return parser;
+        //    xmltv = null;
+        //}
+
+        ////private static IXMLTV_PARSER GetParser(object xmltv)
+        ////{
+        ////    IXMLTV_PARSER _xmltv;
+        ////    if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return null; }
+        ////    return _xmltv;
+        ////}
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22