Belofte version 2.1.8
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 35 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 245 of file bel_debug.cpp.
|
override |
|
delete |
|
delete |
|
delete |
|
delete |
|
inline |
Definition at line 46 of file bel_debug.h.
Referenced by bGame::DoPerft(), bGame::evalEpdPosition(), bel_debug::execute(), cmd_post::execute(), and cmd_nopost::execute().
|
inline |
Definition at line 47 of file bel_debug.h.
Referenced by bGame::DoPerft(), bGame::evalEpdPosition(), and bSearchAlgorithm::StartSearch().
bool outputWriter::attach | ( | std::string const & | fn | ) |
Definition at line 260 of file bel_debug.cpp.
Referenced by bel_debug::execute().
void outputWriter::detach | ( | ) |
Definition at line 269 of file bel_debug.cpp.
Referenced by bel_debug::execute(), and ~outputWriter().
|
inline |
Definition at line 52 of file bel_debug.h.
Referenced by detach(), endl(), and bel_debug::info().
|
inline |
Definition at line 53 of file bel_debug.h.
Referenced by attach(), and bel_debug::info().
|
inline |
Definition at line 55 of file bel_debug.h.
|
inline |
Definition at line 60 of file bel_debug.h.
Referenced by cmd_xboard::execute(), cmd_perft::execute(), cmd_usage::execute(), cmd_eval::execute(), bel_debug::info(), bEpdFile::parse(), bel_debug::run_bench(), UCIMode::sendDebug(), XboardMode::sendDebug(), engineInterface::sendError(), engineInterface::sendHelp(), UCIMode::sendInfo(), XboardMode::sendInfo(), UCIMode::sendInfoDepth(), UCIMode::sendInfoScore(), XboardMode::sendInvalidMove(), engineInterface::sendMove(), UCIMode::sendMove(), engineInterface::sendResponse(), and engineInterface::sendResult().
|
inline |
Definition at line 70 of file bel_debug.h.
|
inline |
Definition at line 71 of file bel_debug.h.
|
friend |
Definition at line 74 of file bel_debug.h.