8 #if !defined(BEL_DEBUG_H)
19 void execute(std::string
const& args);
26 std::string show_gamehistory()
const;
27 std::string show_poshistory()
const;
28 std::string show_fenhistory()
const;
29 std::string show_hashhistory()
const;
52 bool isAttached()
const {
return static_cast<bool>(m_fos); }
53 std::string
fn()
const {
return m_filename ? *m_filename :
""; }
56 std::string
getExpecting()
const {
return m_expecting ? *m_expecting :
""; }
61 std::ostream&
getOs() {
return *m_os; }
62 std::ostream&
getFos() {
return *m_fos; }
67 if (log.m_verbosity >= 0) {
77 std::ostream* m_os =
nullptr;
78 std::shared_ptr<std::ofstream> m_fos =
nullptr;
79 std::shared_ptr<std::string> m_filename =
nullptr;
80 std::shared_ptr<std::string> m_expecting =
nullptr;
81 bool m_expected =
false;
static void run_bench(bSearchAlgorithm &search, depth_t const nDepth)
void execute(std::string const &args)
output to std::cout and if required to debug and log-file
outputWriter & operator=(outputWriter &&)=delete
outputWriter()
Outputwriter class will log to debug file, stdout and log file in this order if they have been initia...
bool checkExpected(std::string const &s)
void setExpecting(std::string const &s)
outputWriter & operator=(outputWriter const &)=delete
outputWriter(outputWriter const &)=delete
outputWriter(outputWriter &&)=delete
bool attach(std::string const &fn)
void setVerbosity(int const l)
friend std::ostream & operator<<(outputWriter &log, T o)
outputWriter & operator<<(std::ostream &(*fun)(std::ostream &os))
required for std::endl
std::string getExpecting() const