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

Diff of /trunk/libxmltv/Core/XMLTV_PARSER.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 26 by william, Thu Mar 7 11:58:34 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            public Dictionary<string, IXMLTVChannel> Channels { get; private set; }
27          #endregion          #endregion
28    
29          #region Parser Testing Methods          #region Parser Testing Methods
# Line 101  namespace libxmltv.Core Line 104  namespace libxmltv.Core
104              }              }
105          }          }
106          #endregion          #endregion
107    
108            #region Creation Methods
109            private void Create()
110            {
111                CreateXMLTVSource();
112                CreateXMLTVChannels();
113            }
114            private void CreateXMLTVSource()
115            {
116                XMLTVSource source = new XMLTVSource(this);
117                Source = source;
118            }
119            private void CreateXMLTVChannels()
120            {
121                XMLTVChannelCollection channels = new XMLTVChannelCollection(this);
122                Channels = channels.Collection;
123                
124            }
125            #endregion
126      }      }
127  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22