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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (hide annotations) (download)
Fri Mar 8 05:20:12 2013 UTC (7 years, 7 months ago) by william
File size: 978 byte(s)

1 william 22 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using libxmltv.Interfaces;
6 william 46 using System.ComponentModel;
7 william 22
8     namespace libxmltv.Core
9     {
10     /// <summary>
11     /// Main class: Creates the XMLTV Loader
12     /// </summary>
13     public static class XMLTV
14     {
15 william 46 static XMLTV() { xmltv_logger.Initialize(); }
16 william 23
17 william 49 private static XMLTVRuntimeInstance instance;
18     public static IXMLTVRuntimeInstance GetInstance() { return InternalGetInstance(); }
19     internal static XMLTVRuntimeInstance InternalGetInstance() { return instance; }
20     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     public static IXMLTVSerializer<IXMLTVRuntimeInstance> GetSerializer() {return InternalGetInstance().Serializer; }
23 william 22 }
24     }
25 william 46
26 william 49

  ViewVC Help
Powered by ViewVC 1.1.22