logfactory.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00029 #ifndef LOGFACTORY_H
00030 #define LOGFACTORY_H
00031 #include "../plugin.h"
00032 #include "../botkernel.h"
00033 #include "../channel.h"
00034 #include "usersinfos.h"
00035 #include <iostream>
00036 #include <map>
00037 using namespace std;
00038
00045 class LogFactory : public Plugin
00046 {
00047 private:
00049 map<string,LogFile*>* logs;
00051 BotKernel* kernel;
00052 public:
00054 LogFactory(BotKernel*);
00056 ~LogFactory();
00058 bool hasToBeLogged(string);
00060 vector<Channel*> getLoggedChannels();
00062 void destroyLogs();
00064 void cleanLogs();
00066 bool newLog(string);
00068 void closeLog(string);
00070 bool log(string,string);
00071 };
00072
00073
00074 #endif
00075