From 0836a6e06f86e366017da3b2b2c132b3a4f2c877 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 13 Jun 2005 20:38:19 +0000 Subject: Added some logfile code. Enhanced the file object... now ready to hook into mov_encoder --- src/info.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/info.h') diff --git a/src/info.h b/src/info.h index 7a9147b..b142a33 100644 --- a/src/info.h +++ b/src/info.h @@ -37,14 +37,29 @@ #ifndef __MIAV_INFO_H__ #define __MIAV_INFO_H__ +#include +#include +#include +#include +#include +#include +#include +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__*/ -- cgit v1.2.3