Definition in file FuegoMain.cpp.
#include "SgSystem.h"
#include <iostream>
#include <boost/filesystem/path.hpp>
#include "FuegoMainEngine.h"
#include "FuegoMainUtil.h"
#include "GoInit.h"
#include "SgDebug.h"
#include "SgException.h"
#include "SgInit.h"
#include <boost/utility.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/cmdline.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/program_options/parsers.hpp>
Go to the source code of this file.
Settings from command line options | |
| bool | g_noHandicap = false |
| bool | g_noBook = false |
| bool | g_quiet = false |
| int | g_fixedBoardSize |
| int | g_maxGames |
| string | g_config |
| path | g_programDir |
| const char * | g_programPath |
| int | g_srand |
Functions | |
| path | GetProgramDir (const char *programPath) |
| Get program directory from program path. | |
| void | MainLoop () |
| void | Help (po::options_description &desc) |
| void | ParseOptions (int argc, char **argv) |
| void | PrintStartupMessage () |
| int | main (int argc, char **argv) |
| path @0::GetProgramDir | ( | const char * | programPath | ) | [static] |
Get program directory from program path.
| programPath | Program path taken from argv[0] in main. According to ANSI C, this can be 0. |
Definition at line 59 of file FuegoMain.cpp.
Referenced by main().
| void @0::Help | ( | po::options_description & | desc | ) | [static] |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 140 of file FuegoMain.cpp.
References g_programDir, g_programPath, g_quiet, g_srand, GetProgramDir(), GoFini(), GoInit(), MainLoop(), ParseOptions(), PrintStartupMessage(), GtpFailure::Response(), SgRandom::SetSeed(), SgDebug(), SgDebugToNull(), SgFini(), SgInit(), and SgException::what().
| void @0::MainLoop | ( | ) | [static] |
Definition at line 66 of file FuegoMain.cpp.
References GoGtpEngine::Book(), GoGtpEngine::ExecuteFile(), g_config, g_fixedBoardSize, g_maxGames, g_noBook, g_noHandicap, g_programDir, g_programPath, FuegoMainUtil::LoadBook(), GoGtpEngine::MainLoop(), and GoGtpEngine::SetMaxClearBoard().
Referenced by main().
| void @0::ParseOptions | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Definition at line 88 of file FuegoMain.cpp.
References g_config, g_fixedBoardSize, g_maxGames, g_noBook, g_noHandicap, g_quiet, g_srand, and Help().
Referenced by main().
| void @0::PrintStartupMessage | ( | ) | [static] |
Definition at line 126 of file FuegoMain.cpp.
References SgDebug(), and FuegoMainUtil::Version().
Referenced by main().
string g_config [static] |
int g_fixedBoardSize [static] |
int g_maxGames [static] |
bool g_noBook = false [static] |
bool g_noHandicap = false [static] |
path g_programDir [static] |
const char* g_programPath [static] |
bool g_quiet = false [static] |
int g_srand [static] |