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

revision 46 by william, Fri Mar 8 04:01:25 2013 UTC revision 49 by william, Fri Mar 8 05:20:12 2013 UTC
# Line 14  namespace libxmltv.Core Line 14  namespace libxmltv.Core
14      {      {
15          static XMLTV() { xmltv_logger.Initialize(); }          static XMLTV() { xmltv_logger.Initialize(); }
16    
17            private static XMLTVRuntimeInstance instance;
18          public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return CreateInstance(xml_file, null); }          public static IXMLTVRuntimeInstance GetInstance() { return InternalGetInstance(); }
19          public static IXMLTVRuntimeInstance CreateInstance(string xml_file, EventHandler<CancelEventArgs> t) { return new XMLTVRuntimeInstance(xml_file,t); }          internal static XMLTVRuntimeInstance InternalGetInstance() { return instance; }
20          //private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv)          public static void CreateInstance(string xml_file) { CreateInstance(xml_file, null); }
21          //{          public static void CreateInstance(string xml_file, EventHandler<CancelEventArgs> t) { instance = new XMLTVRuntimeInstance(xml_file, t); }
22          //    //XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);          public static IXMLTVSerializer<IXMLTVRuntimeInstance> GetSerializer() {return InternalGetInstance().Serializer; }
         //    //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;  
         ////}  
23      }      }
24  }  }
25    
26    

Legend:
Removed from v.46  
changed lines
  Added in v.49

  ViewVC Help
Powered by ViewVC 1.1.22