Manak  2.0.0
set_env.hpp File Reference
Include dependency graph for set_env.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MANAK_CLOSE_LOG   f.close();
 
#define MANAK_DEFAULT_ITERATIONS   10
 Set default iterations if not defined. More...
 
#define MANAK_DEFAULT_OUT_FILENAME   benchmark_stat
 If no output file is given benchmarking statistics will be saved to this file. More...
 
#define MANAK_DEFAULT_SP   100
 Set default success percentage for benchmark-test cases. More...
 
#define MANAK_DEFAULT_TOLERANCE   10
 Set default tolerance if not defined. More...
 
#define MANAK_MODULE_NAME   MANAK_STRINGIZE(MANAK_MODULE)
 Set the module name for further use. More...
 
#define MANAK_OPEN_LOG   std::ofstream f(MANAK_STRINGIZE(MANAK_REDIRECTION_FILENAME), std::fstream::app);
 MANAK_REDIRECTION_BUFFER is the buffer to which std::cout and std::cerr is redirected while benchmark is running. More...
 
#define MANAK_REDIRECTION_BUFFER   f.rdbuf()
 
#define MANAK_REDIRECTION_FILENAME   benchmark_log.txt
 While the benchmark is running all the output on std::cout and std::cerr is redirected to another stream if MANAK_REDIRECTION_FILENAME is set the output is redirected to that file. More...
 

Macro Definition Documentation

#define MANAK_CLOSE_LOG   f.close();

Definition at line 53 of file set_env.hpp.

#define MANAK_DEFAULT_ITERATIONS   10

Set default iterations if not defined.

Definition at line 29 of file set_env.hpp.

#define MANAK_DEFAULT_OUT_FILENAME   benchmark_stat

If no output file is given benchmarking statistics will be saved to this file.

Definition at line 19 of file set_env.hpp.

#define MANAK_DEFAULT_SP   100

Set default success percentage for benchmark-test cases.

Definition at line 34 of file set_env.hpp.

#define MANAK_DEFAULT_TOLERANCE   10

Set default tolerance if not defined.

Definition at line 24 of file set_env.hpp.

#define MANAK_MODULE_NAME   MANAK_STRINGIZE(MANAK_MODULE)

Set the module name for further use.

Definition at line 13 of file set_env.hpp.

#define MANAK_OPEN_LOG   std::ofstream f(MANAK_STRINGIZE(MANAK_REDIRECTION_FILENAME), std::fstream::app);

MANAK_REDIRECTION_BUFFER is the buffer to which std::cout and std::cerr is redirected while benchmark is running.

If its not defined it is redirected to file given by MANAK_REDIRECTION_FILENAME Open the logging file stream

Definition at line 52 of file set_env.hpp.

#define MANAK_REDIRECTION_BUFFER   f.rdbuf()

Definition at line 54 of file set_env.hpp.

#define MANAK_REDIRECTION_FILENAME   benchmark_log.txt

While the benchmark is running all the output on std::cout and std::cerr is redirected to another stream if MANAK_REDIRECTION_FILENAME is set the output is redirected to that file.

Definition at line 42 of file set_env.hpp.