Belofte version 2.2.0
A promising chess program using the UCI or Winboard interface
outputWriter Class Reference

Outputwriter class will log to debug file, stdout and log file in this order if they have been initialized before. More...

#include <outputwriter.h>

+ Inheritance diagram for outputWriter:
+ Collaboration diagram for outputWriter:

Public Member Functions

 outputWriter (std::ostream &os)
 
 ~outputWriter () override
 
 outputWriter (outputWriter const &)=delete
 
 outputWriter (outputWriter &&)=delete
 
outputWriteroperator= (outputWriter const &)=delete
 
outputWriteroperator= (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
 
outputWriteroperator() (int const l)
 
outputWriterendl ()
 
std::ostream & getOs ()
 
std::ostream & getFos ()
 

Friends

template<typename T>
outputWriteroperator<< (outputWriter &ow, T o)
 

Detailed Description

Outputwriter class will log to debug file, stdout and log file in this order if they have been initialized before.

Definition at line 15 of file outputwriter.h.

Constructor & Destructor Documentation

◆ outputWriter() [1/3]

outputWriter::outputWriter ( std::ostream & os)
inlineexplicit

Definition at line 17 of file outputwriter.h.

Referenced by endl(), operator()(), operator<<, operator=(), operator=(), outputWriter(), and outputWriter().

+ Here is the caller graph for this function:

◆ ~outputWriter()

outputWriter::~outputWriter ( )
inlineoverride

Definition at line 23 of file outputwriter.h.

+ Here is the call graph for this function:

◆ outputWriter() [2/3]

outputWriter::outputWriter ( outputWriter const & )
delete
+ Here is the call graph for this function:

◆ outputWriter() [3/3]

outputWriter::outputWriter ( outputWriter && )
delete
+ Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

outputWriter & outputWriter::operator= ( outputWriter const & )
delete
+ Here is the call graph for this function:

◆ operator=() [2/2]

outputWriter & outputWriter::operator= ( outputWriter && )
delete
+ Here is the call graph for this function:

◆ setLevel()

void outputWriter::setLevel ( int const l)
inline

Definition at line 32 of file outputwriter.h.

Referenced by bGame::DoPerft(), bel_debug::execute(), cmd_nopost::execute(), cmd_post::execute(), and bGame::getEpdMoveInPosition().

+ Here is the caller graph for this function:

◆ getLevel()

int outputWriter::getLevel ( ) const
inline

Definition at line 34 of file outputwriter.h.

Referenced by bGame::DoPerft(), endl(), bGame::getEpdMoveInPosition(), operator<<, and bSearchAlgorithm::StartSearch().

+ Here is the caller graph for this function:

◆ attach()

bool outputWriter::attach ( std::string const & fn)
inline

Definition at line 37 of file outputwriter.h.

Referenced by bel_debug::execute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ detach()

void outputWriter::detach ( )
inline

Definition at line 45 of file outputwriter.h.

Referenced by bel_debug::execute(), and ~outputWriter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAttached()

bool outputWriter::isAttached ( ) const
inline

Definition at line 53 of file outputwriter.h.

Referenced by detach(), endl(), bel_debug::info(), and operator<<.

+ Here is the caller graph for this function:

◆ fn()

std::string const & outputWriter::fn ( ) const
inline

Definition at line 55 of file outputwriter.h.

Referenced by attach(), and bel_debug::info().

+ Here is the caller graph for this function:

◆ operator()()

outputWriter & outputWriter::operator() ( int const l)
inline

Definition at line 58 of file outputwriter.h.

+ Here is the call graph for this function:

◆ endl()

◆ getOs()

std::ostream & outputWriter::getOs ( )
inline

Definition at line 76 of file outputwriter.h.

Referenced by operator<<.

+ Here is the caller graph for this function:

◆ getFos()

std::ostream & outputWriter::getFos ( )
inline

Definition at line 78 of file outputwriter.h.

Referenced by operator<<.

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

template<typename T>
outputWriter & operator<< ( outputWriter & ow,
T o )
friend

Definition at line 82 of file outputwriter.h.