using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using libxmltv.Interfaces;
namespace libxmltv.Core
{
///
/// Main class: Creates the XMLTV Loader
///
public static class XMLTV
{
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;
}
public static IXMLTV_PARSER GetParser(object xmltv)
{
IXMLTV_PARSER _xmltv;
if (!Internals.VerifyInstance(xmltv, out _xmltv)) { return null; }
return _xmltv;
}
}
}