NEST
2.6.0,not_revisioned_source_dir@0
|
#include <slistartup.h>
Classes | |
class | GetenvFunction |
Public Member Functions | |
SLIStartup (int, char **) | |
~SLIStartup () | |
void | init (SLIInterpreter *) |
Initialise the module. More... | |
const std::string | name (void) const |
Return name of the module. More... | |
Public Member Functions inherited from SLIModule | |
virtual | ~SLIModule () |
virtual const std::string | commandstring (void) const |
Return sli command sequence to be executed for initialisation. More... | |
void | install (std::ostream &, SLIInterpreter *) |
Print installation message via interpreter message command. More... | |
Private Member Functions | |
std::string | locateSLIInstallationPath (void) |
bool | checkpath (std::string const &, std::string &) const |
Returns true, if the interpreter startup file sli-init.sli is in the supplied path and false otherwise. More... | |
std::string | getenv (const std::string &) const |
std::string | checkenvpath (std::string const &, SLIInterpreter *, std::string) const |
Checks if the environment variable envvar contains a directory. More... | |
Private Attributes | |
const std::string | startupfilename |
const std::string | slilibpath |
std::string | slihomepath |
std::string | slidocdir |
Token | targs |
int | verbosity_ |
bool | debug_ |
SLIStartup::SLIStartup | ( | int | argc, |
char ** | argv | ||
) |
|
inline |
|
private |
Checks if the environment variable envvar contains a directory.
If yes, the path is returned, else an empty string is returned.
References getenv(), SLIInterpreter::M_ERROR, and SLIInterpreter::message().
Referenced by init().
|
private |
Returns true, if the interpreter startup file sli-init.sli is in the supplied path and false otherwise.
References slilibpath, and startupfilename.
Referenced by init().
|
private |
Referenced by checkenvpath(), and SLIStartup::GetenvFunction::execute().
|
virtual |
Initialise the module.
When this function is called, most of the interpreter's fascilities are up and running. However, depending on where in the interpreter's bootstrap sequence the module is initialised, not all services may be available.
Implements SLIModule.
References architecturedict_name, argv_name, assert(), SLIInterpreter::backtrace_on(), SLIInterpreter::baselookup(), checkenvpath(), checkpath(), SLIInterpreter::createcommand(), debug_, SLIInterpreter::debug_mode_on(), SLIInterpreter::def(), doublesize_name, environ, environment_name, SLIInterpreter::EStack, exitcode_abort_name, exitcode_exception_name, exitcode_fatal_name, exitcode_name, exitcode_scripterror_name, exitcode_segfault_name, exitcode_success_name, exitcode_unknownerror_name, exitcode_userabort_name, exitcodes_name, getenv_name, getenvfunction, have_gsl_name, have_libneurosim_name, have_mpi_name, have_music_name, havelonglong_name, host_name, hostcpu_name, hostos_name, hostvendor_name, intsize_name, SLIInterpreter::iparse_name, longlongsize_name, longsize_name, SLIInterpreter::M_DEBUG, SLIInterpreter::M_FATAL, SLIInterpreter::M_INFO, SLIInterpreter::M_QUIET, SLIInterpreter::message(), ndebug_name, platform_name, pointersize_name, prefix_name, prgbuilddir_name, prgbuilt_name, prgdatadir_name, prgdocdir_name, prgmajor_name, prgminor_name, prgname_name, prgpatch_name, prgsourcedir_name, TokenStack::push(), TokenStack::push_move(), slidocdir, slihomepath, SLIsignalflag, start_name, SLIInterpreter::statusdict, statusdict_name, targs, threading_name, lockPTR< D >::valid(), SLIInterpreter::verbosity(), and verbosity_.
|
private |
|
inlinevirtual |
Return name of the module.
Implements SLIModule.
|
private |
Referenced by init(), and SLIStartup().
GetenvFunction SLIStartup::getenvfunction |
Referenced by init().
Name SLIStartup::ismpi_name |
|
private |
Referenced by init().
|
private |
Referenced by init().
|
private |
Referenced by checkpath().
|
private |
Referenced by checkpath().
|
private |
Referenced by init(), and SLIStartup().
|
private |
Referenced by init(), and SLIStartup().