VERB_code_2.3
Output Namespace Reference

functions for write log and support files. Functions are defined in Output.h and descripted in Output.cpp More...

Functions

void open_log_file (string filename)
 Open file stream for log file. More...
 
void close_log_file ()
 Close file stream for log file.
 
void flush_log_file ()
 flush file stream for log file
 
void set_output_lvl (int new_outputLvl)
 Set the verbose level until redefine. More...
 
void echo (int msglvl, const char *format,...)
 Basic function! Write the message to the file. More...
 

Variables

ofstream log_file
 stream for log file defined in namespase Output
 
int outputLvl = 0
 verbose level defined in namespase Output
 

Detailed Description

functions for write log and support files. Functions are defined in Output.h and descripted in Output.cpp

Function Documentation

void Output::echo ( int  msglvl,
const char *  format,
  ... 
)

Basic function! Write the message to the file.

Parameters
msglvl- verbose level for the message from 0 to 3
format- sprintf format for the output string
...- variables used for format string

Definition at line 44 of file Output.cpp.

void Output::open_log_file ( string  filename)

Open file stream for log file.

Parameters
filename- name of log file

Definition at line 23 of file Output.cpp.

void Output::set_output_lvl ( int  new_outputLvl)

Set the verbose level until redefine.

Parameters
new_outputLvl- verbose level

Definition at line 40 of file Output.cpp.