class core::BioShellEnvironment

#include <BioShellEnvironment.hh>

Overview

defines global constants and environment for BioShell’s programs More…

// methods

static const std::string& bioshell_db_path ()
static void bioshell_db_path (const std::string& new_path)
static const std::string from_file_or_db (const std::string& fname)

static const std::string from_file_or_db (
    const std::string& fname,
    const std::string& db_location
    )

static void set_db_path_from_environment ()

Detailed Documentation

defines global constants and environment for BioShell’s programs

Methods

static const std::string& bioshell_db_path ()

Returns the directory where the BioShell keeps his stuff.

The path should be defined by the -in:database command line option

Returns:

the path to BioShell’s parameters

static void bioshell_db_path (const std::string& new_path)

Sets the new value of the directory name where the BioShell keeps his stuff.

Parameters:

new_path
  • the new location
static const std::string from_file_or_db (const std::string& fname)

tries to open a file from BioShell database; local directory is also tested.

Parameters:

fname
  • name of the file to be opened

Returns:

file name with a properly completed path

static const std::string from_file_or_db (
    const std::string& fname,
    const std::string& db_location
    )

Looks for a file in BioShell database; local directory is also tested.

Parameters:

fname
  • name of the file to be opened
db_location
  • relative path within the BioShell database where the file should be located

Returns:

file name with a properly completed path