|
/*
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.
Quote : "Life is all about solving problems and enjoying their solutions !! "