Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
output to std::cout and if required to debug and log-file More...
#include <bel_debug.h>
Public Member Functions | |
outputWriter (std::ostream &os) | |
Outputwriter class will log to debug file, stdout and log file in this order if they have been initialized before. | |
~outputWriter () override | |
outputWriter (outputWriter const &)=delete | |
outputWriter (outputWriter &&)=delete | |
outputWriter & | operator= (outputWriter const &)=delete |
outputWriter & | operator= (outputWriter &&)=delete |
void | setLevel (int const l) |
int | getLevel () const |
bool | attach (std::string const &fn) |
void | detach () |
bool | isAttached () const |
std::string const & | fn () const |
outputWriter & | operator() (int const l) |
outputWriter & | endl () |
std::ostream & | getOs () |
std::ostream & | getFos () |
Friends | |
template<typename T> | |
std::ostream & | operator<< (outputWriter &log, T o) |
output to std::cout and if required to debug and log-file
Definition at line 38 of file bel_debug.h.
|
explicit |
Outputwriter class will log to debug file, stdout and log file in this order if they have been initialized before.
Definition at line 256 of file bel_debug.cpp.
Referenced by endl(), operator()(), operator<<, operator=(), operator=(), outputWriter(), and outputWriter().
|
override |
|
delete |
|
delete |
|
delete |
|
delete |
|
inline |
Definition at line 49 of file bel_debug.h.
Referenced by bGame::DoPerft(), bel_debug::execute(), cmd_nopost::execute(), cmd_post::execute(), and bGame::getEpdMoveInPosition().
|
inline |
Definition at line 51 of file bel_debug.h.
Referenced by bGame::DoPerft(), bGame::getEpdMoveInPosition(), and bSearchAlgorithm::StartSearch().
bool outputWriter::attach | ( | std::string const & | fn | ) |
Definition at line 271 of file bel_debug.cpp.
Referenced by bel_debug::execute().
void outputWriter::detach | ( | ) |
Definition at line 280 of file bel_debug.cpp.
Referenced by bel_debug::execute(), and ~outputWriter().
|
inline |
Definition at line 57 of file bel_debug.h.
Referenced by detach(), endl(), bel_debug::info(), and operator<<.
|
inline |
Definition at line 59 of file bel_debug.h.
Referenced by attach(), and bel_debug::info().
|
inline |
|
inline |
Definition at line 68 of file bel_debug.h.
Referenced by cmd_about::execute(), cmd_bd::execute(), cmd_eval::execute(), cmd_game::execute(), cmd_perft::execute(), cmd_quit::execute(), cmd_save::execute(), cmd_usage::execute(), cmd_xboard::execute(), bel_debug::info(), bEpdFile::parse(), bel_debug::run_bench(), UCIMode::sendDebug(), XboardMode::sendDebug(), engineInterface::sendError(), engineInterface::sendHelp(), UCIMode::sendInfo(), XboardMode::sendInfo(), UCIMode::sendInfoCurrMove(), UCIMode::sendInfoDepth(), UCIMode::sendInfoSearching(), UCIMode::sendInfoSearching(), XboardMode::sendInfoSearching(), XboardMode::sendInvalidMove(), engineInterface::sendMove(), UCIMode::sendMove(), engineInterface::sendResponse(), engineInterface::sendResult(), and XboardMode::sendResult().
|
inline |
Definition at line 78 of file bel_debug.h.
Referenced by operator<<.
|
inline |
Definition at line 80 of file bel_debug.h.
Referenced by operator<<.
|
friend |
Definition at line 84 of file bel_debug.h.