Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

RSS Reader Plug-in for Internet Explorer

, 16 Jul 2007
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
rssreader_exe.zip
rssreader_src.zip
RssReader_src
RRPRssFetcher
RRPRssFetcher
res
RRPRssFetcher.ico
toolbar.bmp
RRPRssFetcher.vcproj.TEKAWADE.Prafulla V Tekawade.user
RSSReaderplugin
Debug
res
RssReaderPlugin.dll.manifest
RRPComInterfaceImplementor.rgs
RssReaderPlugin.aps
RssReaderPlugin.def
RssReaderPlugin.dsp
RssReaderPlugin.dsw
RssReaderPlugin.opt
RssReaderPlugin.plg
RssReaderPlugin.tlb
RssReaderPlugin.vcproj.TEKAWADE.Prafulla V Tekawade.user
RssReaderPluginps.def
RssReaderPluginps.mk
Setup.iss
/*
	Project		: RSS Reader plugin for Internet Explorer
	File Name	: RRPRssParser.h
	Date		: 
	Purpose		: It is the parser for the rss file. 
	Note		: 
	Send comments 
	or Bugs to	: prafulla_t@users.sourceforge.net
*/

#pragma once
#include "tinyxml.h"

#include "stdafx.h"
#include <vector>
#include "RRPRssItemIterator.h"

class RRPRssParser :  public RRPRssItemIterator {
public:
	RRPRssParser(const char *nameOfFile);
	~RRPRssParser(void);
	BOOL isError();
	const char* getErrorString();
	void parse();

	//Even though we have defined Iterator we need this function
	//To paint menu items correctly

	//Gets RSSItem at the specified position
	RRPRssItem *getRssItem(int index) {
		return rssItemVector[index];
	}

	//Returns how many RssItems are there
	int getVectorSize() {
		return rssItemVector.size();
	}

	
	
	RRPRssItemIterator* getItemIterator() {
		index = -1;
		return dynamic_cast<RRPRssItemIterator*>(this);
	};

	//Abstract methods from class RRPRssItemIterator 
	virtual BOOL hasNext();
	virtual RRPRssItem* getItem();
	
private:
	TiXmlDocument *doc;
	char *fileName;
	BOOL errorCode;
	std::vector<RRPRssItem *> rssItemVector;

	//Index for iteration,at a time only one iteration is possible!
	unsigned int index ;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

PrafullaT

India India
Quote : "Life is all about solving problems and enjoying their solutions !! "

| Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 17 Jul 2007
Article Copyright 2007 by PrafullaT
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid