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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 36 - (show annotations) (download)
Fri Mar 8 02:13:59 2013 UTC (7 years, 6 months ago) by william
File size: 1371 byte(s)
+ use a MarshalByRefObject

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using libxmltv.Interfaces;
6
7 namespace libxmltv.Core
8 {
9 /// <summary>
10 /// Main class: Creates the XMLTV Loader
11 /// </summary>
12 public static class XMLTV
13 {
14 static XMLTV() { XMLTV_LOGGER.Initialize(); }
15
16
17 public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return new XMLTVRuntimeInstance(xml_file); }
18
19 //private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv)
20 //{
21 // //XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
22 // //return loader;
23 // //XMLTVRuntimeInstance instance = CreateInstance(xml_file);
24 // //return instance;
25 // //xmltv = CreateInstance(xml_file);
26 // xmltv = null;
27 //}
28 //private static void CreateParser(out XMLTVRuntimeInstance xmltv)
29 //{
30 // //XMLTV_PARSER parser = new XMLTV_PARSER(xmltv);
31 // //return parser;
32 // xmltv = null;
33 //}
34
35 ////private static IXMLTV_PARSER GetParser(object xmltv)
36 ////{
37 //// IXMLTV_PARSER _xmltv;
38 //// if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return null; }
39 //// return _xmltv;
40 ////}
41 }
42 }

  ViewVC Help
Powered by ViewVC 1.1.22