Belofte version 2.1.9
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 140 of file belofte.cpp.
Referenced by appInstance(), appInstance(), operator=(), and operator=().
appInstance::~appInstance | ( | ) |
Definition at line 160 of file belofte.cpp.
|
delete |
|
delete |
|
delete |
|
delete |
std::string const appInstance::setMode | ( | std::string const & | iName | ) |
Definition at line 170 of file belofte.cpp.
Referenced by cmd_belofte::execute(), cmd_uci::execute(), cmd_ucinewgame::execute(), cmd_xboard::execute(), and main().
void appInstance::setConfig | ( | std::string const & | s, |
int64_t | v ) |
Definition at line 178 of file belofte.cpp.
Referenced by cmd_computer::execute(), cmd_name::execute(), cmd_random::execute(), cmd_UCI_Opponent::execute(), main(), bConfigurableGame::setAlgorithm(), and setName().
int64_t appInstance::getConfig | ( | std::string const & | s, |
int64_t | v ) |
Definition at line 183 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 189 of file belofte.cpp.
std::string appInstance::getConfig | ( | std::string const & | s, |
std::string const & | v ) |
Definition at line 194 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 204 of file belofte.cpp.
Referenced by main().
std::string appInstance::getName | ( | ) | const |
Definition at line 218 of file belofte.cpp.
Referenced by bel_debug::info().
outputWriter appInstance::bout |
Definition at line 173 of file belofte.h.
Referenced by appInstance(), bGame::DoPerft(), bel_debug::execute(), cmd_about::execute(), cmd_bd::execute(), cmd_eval::execute(), cmd_game::execute(), cmd_ls::execute(), cmd_perft::execute(), cmd_quit::execute(), cmd_save::execute(), cmd_usage::execute(), cmd_xboard::execute(), bel_debug::info(), main(), bEpdFile::parse(), bEpd::parsePerftPosition(), bel_debug::run_bench(), UCIMode::sendDebug(), XboardMode::sendDebug(), engineInterface::sendError(), engineInterface::sendHelp(), XboardMode::sendInvalidMove(), BelofteMode::sendPrompt(), engineInterface::sendResponse(), and bEpd::translateEpdResult().
outputWriter appInstance::sout |
normal output
Definition at line 174 of file belofte.h.
Referenced by appInstance(), bGame::DoPerft(), bel_debug::execute(), cmd_nopost::execute(), cmd_post::execute(), bGame::getEpdMoveInPosition(), bel_debug::info(), UCIMode::sendInfo(), XboardMode::sendInfo(), UCIMode::sendInfoCurrMove(), UCIMode::sendInfoDepth(), UCIMode::sendInfoSearching(), UCIMode::sendInfoSearching(), XboardMode::sendInfoSearching(), engineInterface::sendMove(), UCIMode::sendMove(), engineInterface::sendResult(), XboardMode::sendResult(), and bSearchAlgorithm::StartSearch().
commandReader appInstance::m_reader |
searching output
Definition at line 175 of file belofte.h.
Referenced by appInstance(), cmd_exec::execute(), cmd_execat::execute(), main(), and commandReader::runner().
bel_hash appInstance::m_hashEngine |
bel_debug appInstance::m_debuginterface |
Definition at line 177 of file belofte.h.
Referenced by appInstance(), cmd_debug::execute(), and cmd_info::execute().
engineInterface* appInstance::m_ui |
Definition at line 178 of file belofte.h.
Referenced by AppEI(), appInstance(), and setMode().
bGame* appInstance::m_game |
Definition at line 179 of file belofte.h.
Referenced by appInstance(), and Game().