57 if ( conf.
_fp != 0 ) {
70 if ( theInstance.
_fp == 0 ) {
73 std::ifstream conf_file( CONFIG_FILE, std::ios::in );
89 if ( conf->
_fp != 0 ) {
116 if ( conf.
_fp == 0 ) {
118 throw OmException(
"openModeller configuration not loaded" );
121 return conf.
_fp->
get( key );
131 if ( conf.
_fp != 0 ) {
141 std::vector<std::string>
146 if ( conf.
_fp == 0 ) {
148 throw OmException(
"openModeller configuration not loaded" );
static void loadConfig(const std::string configFile)
int count(const std::string &key) const
static std::vector< std::string > getAll(const std::string &key)
static Log * instance()
Returns the instance pointer, creating the object on the first call.
static std::string get(const std::string &key)
static Settings & _getInstance()
std::vector< std::string > getAll(const std::string &key) const
static void _loadConfig(Settings *settings, const std::string configFile)
static int count(const std::string &key)
std::string get(const std::string &key) const
void debug(const char *format,...)
'Debug' level.