1 #ifndef _LOG_H
2 #define _LOG_H
3 
4 #include <cstdio>
5 #include <string>
6 
7 class cLogfile {
8 public:
9 	enum log_t { LOG_RX, LOG_TX, LOG_START, LOG_STOP };
10 private:
11 	FILE*	logfile;
12 	bool	retflag;
13 	log_t	logtype;
14 
15 public:
16 	cLogfile(const std::string& fname);
17 	~cLogfile();
18 	void	log_to_file(log_t type, const std::string& s);
19 	void	log_to_file_start();
20 	void	log_to_file_stop();
21 };
22 
23 #endif
24