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

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

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

revision 24 by william, Thu Mar 7 11:11:20 2013 UTC revision 25 by william, Thu Mar 7 11:36:00 2013 UTC
# Line 1  Line 1 
1  #define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()  //#define XMLTV_PARSER_TESTING // when defined will allow calls to be made to _imp_TestParse()
2  using System;  using System;
3  using System.Collections.Generic;  using System.Collections.Generic;
4  using System.Linq;  using System.Linq;
# Line 17  namespace libxmltv.Core Line 17  namespace libxmltv.Core
17              IXMLTV_LOADER _xmltv;              IXMLTV_LOADER _xmltv;
18              if (!Internals.VerifyInstance<IXMLTV_LOADER>(xmltv, out _xmltv)) { return; }              if (!Internals.VerifyInstance<IXMLTV_LOADER>(xmltv, out _xmltv)) { return; }
19              XMLTV_LOADER = _xmltv;              XMLTV_LOADER = _xmltv;
20                Create();
21          }          }
22          #region IXMLTV_PARSER members          #region IXMLTV_PARSER members
23          public IXMLTV_LOADER XMLTV_LOADER { get; private set; }          public IXMLTV_LOADER XMLTV_LOADER { get; private set; }
24          public void TestParse() { _imp_TestParse(); }          public void TestParse() { _imp_TestParse(); }
25            public IXMLTVSource Source { get; private set; }
26          #endregion          #endregion
27    
28          #region Parser Testing Methods          #region Parser Testing Methods
# Line 101  namespace libxmltv.Core Line 103  namespace libxmltv.Core
103              }              }
104          }          }
105          #endregion          #endregion
106    
107            #region Creation Methods
108            private void Create()
109            {
110                CreateXMLTVSource();
111            }
112            private void CreateXMLTVSource()
113            {
114                XMLTVSource source = new XMLTVSource(this);
115                Source = source;
116            }
117            #endregion
118      }      }
119  }  }

Legend:
Removed from v.24  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.22