My Project
Output.h
1 
15 // Check if OUTPUT_H is defined, to not include the class more then one time.
16 #ifndef OUTPUT_H
17 #define OUTPUT_H
18 
19 #include <string.h>
20 #include <stdarg.h>
21 #include <sstream>
22 #include <fstream>
23 #include <iostream>
24 
25 #include <ctime>
26 #include <time.h>
27 
28 // include functions, provided exceptions handling
29 #include "../Exceptions/error.h"
30 
31 namespace Output {
32 
33  void open_log_file(string filename);
34  void close_log_file();
35  void flush_log_file();
36  void echo(int msglvl, const char * format, ... );
37  void set_output_lvl(int new_outputLvl);
38 
39 }
40 
41 #endif
void set_output_lvl(int new_outputLvl)
Set the verbose level until redefine.
Definition: Output.cpp:40
functions for write log and support files. Functions are defined in Output.h and descripted in Output...
Definition: Output.cpp:15
void echo(int msglvl, const char *format,...)
Basic function! Write the message to the file.
Definition: Output.cpp:44
void open_log_file(string filename)
Open file stream for log file.
Definition: Output.cpp:23
void flush_log_file()
flush file stream for log file
Definition: Output.cpp:36
void close_log_file()
Close file stream for log file.
Definition: Output.cpp:32