ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTV.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTV.cs (file contents):
Revision 23 by william, Thu Mar 7 11:08:48 2013 UTC vs.
Revision 36 by william, Fri Mar 8 02:13:59 2013 UTC

--- 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 @@ namespace libxmltv.Core
     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;
+        ////}
     }
 }