diff options
Diffstat (limited to 'src/info.h')
-rw-r--r-- | src/info.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -37,14 +37,29 @@ #ifndef __MIAV_INFO_H__ #define __MIAV_INFO_H__ +#include <time.h> +#include <sys/types.h> +#include <unistd.h> +#include <stdarg.h> +#include <pthread.h> +#include <semaphore.h> +#include <string> +using namespace std; + class Info { public: - Info() {} + Info(); + virtual ~Info() {} virtual void error(char* fmt, ...) = 0; virtual void warn(char* fmt, ...) = 0; virtual void info(char* fmt, ...) = 0; + void log(char* fmt, ...); + +protected: + pthread_mutex_t mutex; + string log_filename; }; #endif/*__MIAV_INFO_H__*/ |