Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » RSS Parser/Composer Class For U++
Re: RSS Parser/Composer Class For U++ [message #18290 is a reply to message #18139] Sat, 20 September 2008 16:20 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hi,

I would like to make a proposal about Rss class:

As I mentioned before, I am also working on Rdf, Wap and Atom classes. Since these formats are also in XML format and uses the same basic structure, and the basic elements (RssTag and RssNode) of my Rss class are actually generic classes which can be also used effectively to parse (and create) feeds in this format, wouldn't it be much better to roll them into one package and create a WCSLib (Web Content Syndication Library) for U++? Actually, this won't make any impact on your code (if anyone is already using Rss class), only a header change will make your code work, after this supposed migration (a "WCSLib.h" instead of "Rss.h". In this way, we'll have a standardized/uniform code too (which will make the reading and parsing easy).

All the change I have to do is to rename RssTag and RssNode classes to WCSTag and WCSNode, and then define [Rss/Rdf/Wap/Atom]Tag and [Rss/Rdf/Wap/Atom]Node as types of them, eg.:

typedef WCSTag RssTag;
typedef WCSNode RssNode;


and, files should be:

                         WCSLib.h (#include header)
                        [WCSLib.cpp] 
                           /\
                          /  \
              ------------    ------------
              |          |    |          |
            Rss.h      Rdf.h  Atom.h    Wap.h
            Rss.cpp   Rdf.cpp Atom.cpp  Wap.cpp
  






I would like to know what do you think and your suggestions about WCSLib idea?


Regards.


[Updated on: Sat, 20 September 2008 16:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bazaar - Call of duty
Next Topic: AggCtrl
Goto Forum:
  


Current Time: Tue May 14 03:22:38 CEST 2024

Total time taken to generate the page: 0.03873 seconds