12 |
public static class XMLTV |
public static class XMLTV |
13 |
{ |
{ |
14 |
static XMLTV() { XMLTV_LOGGER.Initialize(); } |
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; |
|
|
} |
|
15 |
|
|
16 |
public static IXMLTV_PARSER GetParser(object xmltv) |
|
17 |
{ |
public static IXMLTVRuntimeInstance CreateInstance(string xml_file) { return new XMLTVRuntimeInstance(xml_file); } |
18 |
IXMLTV_PARSER _xmltv; |
|
19 |
if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return null; } |
//private static void CreateLoader(string xml_file, out XMLTVRuntimeInstance xmltv) |
20 |
return _xmltv; |
//{ |
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 |
} |
} |