Click here to Skip to main content
15,886,858 members
Articles / Desktop Programming / WTL

RSS Reader Plug-in for Internet Explorer

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
16 Jul 2007CPOL4 min read 317.4K   1.3K   32  
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
/*
	Project		: RSS Reader plugin for Internet Explorer
	File name	: RRPDebugInfoLogger.h
	Date		: 
	Purpose		: It is the Debug Info logger,It provides interface for basic 
				  logging mechanism
	Note		: It is a Singlton class(Implments Singleton Pattern GoF)
	Send comments 
	or Bugs to	: prafulla_t@users.sourceforge.net
*/

#pragma once




#ifndef __RRPDEBUGGER_INFO_LOGGER_H
#define __RRPDEBUGGER_INFO_LOGGER_H

//HAS to be singlton
class RRPDebugInfoLogger
{
public :
	static RRPDebugInfoLogger* getInstance() {
		if(ptr == NULL) 
			ptr = new RRPDebugInfoLogger();
		return ptr;
	};

	static void removeInstance() {
		if(ptr) {
			delete ptr;
			ptr = NULL;
		}
	};
	RRPDebugInfoLogger(void);
	~RRPDebugInfoLogger(void);
	void setDebug(bool debugFlag);
	void log(CString message,...);
protected:
	void doLogging(CString log);
private :
	static RRPDebugInfoLogger* ptr;
	bool debugFlag;
};


//One and the only object

#endif

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)


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

Comments and Discussions