class Logger {
public:
static Logger& Instance()
{
static Logger theLogger;
return theLogger;
}
bool openLogFile(string logFile);
void writeToLogFile(string sLine);
bool closeLogFile(string logFile);
private:
Logger();
Logger(Logger const&);
Logger& operator=(Logger const&);
~Logger();
};
class Singleton
{
public:
~Singleton(){}
static Singleton& Instance(){return instance_;}
protected:
Singleton(){}
Singleton(const Singleton&);
Singleton& operator=(const Singleton&);
private:
static Singleton instance_;
};