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

Diff of /trunk/libxmltv/Core/XMLTVLoader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11 by william, Thu Mar 7 05:48:51 2013 UTC revision 16 by william, Thu Mar 7 09:26:43 2013 UTC
# Line 4  using System.Linq; Line 4  using System.Linq;
4  using System.Text;  using System.Text;
5  using libxmltv.Interfaces;  using libxmltv.Interfaces;
6  using System.IO;  using System.IO;
7    using Enterprise.Logging;
8    
9  namespace libxmltv.Core  namespace libxmltv.Core
10  {  {
# Line 14  namespace libxmltv.Core Line 15  namespace libxmltv.Core
15      {      {
16          public static object CreateLoader(string xml_file)          public static object CreateLoader(string xml_file)
17          {          {
18                XMLTV_LOGGER.Initialize();
19              XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);              XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
20              return loader;              return loader;
21          }          }
# Line 45  namespace libxmltv.Core Line 47  namespace libxmltv.Core
47          public XMLTV_LOADER(string xml_file)          public XMLTV_LOADER(string xml_file)
48          {          {
49              xmlfile = xml_file;              xmlfile = xml_file;
50                LoadXml();
51          }          }
52          #region IXMLTV_LOADER          #region IXMLTV_LOADER
53          public FileInfo XmlFile { get { return new FileInfo(xmlfile); } }          public FileInfo XmlFile { get { return new FileInfo(xmlfile); } }
54          #endregion          #endregion
55    
56            private void LoadXml()
57            {
58                XMLTV_LOGGER.Log.Info.WriteLine("Loading XMLTV File: {0}", XmlFile.Name);
59                XMLTV_LOGGER.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
60            }
61      }      }
62  }  }

Legend:
Removed from v.11  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.22