Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
|
Singleton implementation of application. More...
#include <belofte.h>
Public Member Functions | |
appInstance () | |
~appInstance () | |
appInstance (appInstance const &)=delete | |
appInstance (appInstance &&)=delete | |
appInstance & | operator= (appInstance const &)=delete |
appInstance & | operator= (appInstance &&)=delete |
std::string const | setMode (std::string const &iName) |
std::string const & | getMode () const |
void | setConfig (std::string const &s, int64_t v) |
int64_t | getConfig (std::string const &s, int64_t v) |
void | setConfig (std::string const &s, std::string const &v) |
std::string | getConfig (std::string const &s, std::string const &v) |
void | setName (char *sName) |
set name of executable based on argv[0] Remove leading / and \ characters Remove trailing .exe if present | |
std::string | getName () const |
Public Attributes | |
outputWriter | bout |
outputWriter | sout |
normal output | |
commandReader | m_reader |
searching output | |
bel_hash | m_hashEngine |
read input | |
bel_debug | m_debuginterface |
engineInterface * | m_ui |
bGame * | m_game |
appInstance::appInstance | ( | ) |
Definition at line 395 of file belofte.cpp.
appInstance::~appInstance | ( | ) |
Definition at line 415 of file belofte.cpp.
|
delete |
|
delete |
|
delete |
|
delete |
std::string const appInstance::setMode | ( | std::string const & | iName | ) |
Definition at line 425 of file belofte.cpp.
Referenced by cmd_belofte::execute(), cmd_uci::execute(), cmd_xboard::execute(), and main().
void appInstance::setConfig | ( | std::string const & | s, |
int64_t | v | ||
) |
Definition at line 433 of file belofte.cpp.
Referenced by cmd_random::execute(), cmd_computer::execute(), cmd_UCI_Opponent::execute(), cmd_name::execute(), main(), and setName().
int64_t appInstance::getConfig | ( | std::string const & | s, |
int64_t | v | ||
) |
Definition at line 438 of file belofte.cpp.
Referenced by bGame::DoSearch(), cmd_about::execute(), getName(), and bel_debug::info().
void appInstance::setConfig | ( | std::string const & | s, |
std::string const & | v | ||
) |
Definition at line 444 of file belofte.cpp.
std::string appInstance::getConfig | ( | std::string const & | s, |
std::string const & | v | ||
) |
Definition at line 449 of file belofte.cpp.
void appInstance::setName | ( | char * | sName | ) |
set name of executable based on argv[0] Remove leading / and \ characters Remove trailing .exe if present
Definition at line 459 of file belofte.cpp.
Referenced by main().
std::string appInstance::getName | ( | ) | const |
Definition at line 473 of file belofte.cpp.
Referenced by bel_debug::info().
outputWriter appInstance::bout |
Definition at line 330 of file belofte.h.
Referenced by bGame::DoPerft(), bGame::evalPerftResult(), bel_debug::execute(), cmd_quit::execute(), cmd_xboard::execute(), cmd_perft::execute(), cmd_ls::execute(), cmd_about::execute(), cmd_save::execute(), cmd_game::execute(), cmd_bd::execute(), cmd_usage::execute(), cmd_eval::execute(), bel_debug::info(), main(), bEpdFile::parse(), bel_debug::run_bench(), UCIMode::sendDebug(), XboardMode::sendDebug(), engineInterface::sendError(), engineInterface::sendHelp(), XboardMode::sendInvalidMove(), BelofteMode::sendPrompt(), and engineInterface::sendResponse().
outputWriter appInstance::sout |
normal output
Definition at line 331 of file belofte.h.
Referenced by bGame::DoPerft(), bGame::evalEpdPosition(), bel_debug::execute(), cmd_post::execute(), cmd_nopost::execute(), bel_debug::info(), UCIMode::sendInfo(), XboardMode::sendInfo(), UCIMode::sendInfoCurrMove(), UCIMode::sendInfoDepth(), UCIMode::sendInfoScore(), UCIMode::sendInfoSearching(), XboardMode::sendInfoSearching(), engineInterface::sendMove(), UCIMode::sendMove(), engineInterface::sendResult(), and bSearchAlgorithm::StartSearch().
commandReader appInstance::m_reader |
searching output
Definition at line 332 of file belofte.h.
Referenced by cmd_execat::execute(), cmd_exec::execute(), main(), and commandReader::runner().
bel_hash appInstance::m_hashEngine |
bel_debug appInstance::m_debuginterface |
Definition at line 334 of file belofte.h.
Referenced by cmd_debug::execute(), and cmd_info::execute().
engineInterface* appInstance::m_ui |