--- 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(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(xmltv, out _xmltv)) { return null; } + //// return _xmltv; + ////} } }