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