#include <getopt.h>#include <boost/filesystem/operations.hpp>#include <boost/algorithm/string.hpp>#include <boost/foreach.hpp>#include <utility>#include <string>#include <opencog/server/CogServer.h>#include <opencog/util/Config.h>#include <opencog/util/Logger.h>#include <opencog/util/exceptions.h>#include <opencog/util/misc.h>

Go to the source code of this file.
Functions | |
| static void | usage (const char *progname) |
| int | main (int argc, char *argv[]) |
Variables | |
| static const char * | DEFAULT_CONFIG_FILENAME = "opencog.conf" |
| static const char * | DEFAULT_CONFIG_PATHS [] |
| static const char * | DEFAULT_MODULE_PATHS [] |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 75 of file CogServerMain.cc.
References opencog::cogserver(), opencog::config(), DEFAULT_CONFIG_FILENAME, DEFAULT_CONFIG_PATHS, DEFAULT_MODULE_PATHS, opencog::CogServer::enableNetworkServer(), opencog::exists(), opencog::StandardException::getMessage(), getopt(), opencog::Config::load(), opencog::CogServer::loadModules(), opencog::CogServer::loadSCMModules(), opencog::logger(), opencog::CogServer::openDatabase(), optarg, opencog::Config::reset(), opencog::server(), opencog::CogServer::serverLoop(), opencog::Config::set(), opencog::Logger::setBackTraceLevel(), opencog::Logger::setFilename(), opencog::Logger::setLevel(), opencog::Logger::setPrintToStdoutFlag(), and usage().
| static void usage | ( | const char * | progname | ) | [static] |
const char* DEFAULT_CONFIG_FILENAME = "opencog.conf" [static] |
Definition at line 45 of file CogServerMain.cc.
const char* DEFAULT_CONFIG_PATHS[] [static] |
const char* DEFAULT_MODULE_PATHS[] [static] |
Initial value:
{
DATADIR,
"opencog",
"../opencog",
"/usr/share/opencog",
"/usr/local/share/opencog",
NULL
}
Definition at line 55 of file CogServerMain.cc.
1.5.6