src/corelib/ncbi_param.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbi_param.hpp>
#include <corelib/error_codes.hpp>

Include dependency graph for ncbi_param.cpp:

Go to the source code of this file.

Defines

#define NCBI_USE_ERRCODE_X   Corelib_Config

Functions

bool StringToBool (const string &value)
string GetEnvVarName (const char *section, const char *variable, const char *env_var_name)
const char * GetEnv (const char *section, const char *variable, const char *env_var_name)
bool g_GetConfigFlag (const char *section, const char *variable, const char *env_var_name, bool default_value)
 Get boolean configuration value.
int g_GetConfigInt (const char *section, const char *variable, const char *env_var_name, int default_value)
 Get integer configuration value.
string g_GetConfigString (const char *section, const char *variable, const char *env_var_name, const char *default_value)
 Get string configuration value.

Variables

const char * kNcbiConfigPrefix = "NCBI_CONFIG__"
static const char *const CONFIG_DUMP_SECTION = "NCBI"
static const char *const CONFIG_DUMP_VARIABLE = "CONFIG_DUMP_VARIABLES"
static bool config_dump


Define Documentation

#define NCBI_USE_ERRCODE_X   Corelib_Config
 

Definition at line 39 of file ncbi_param.cpp.


Function Documentation

const char* @0::GetEnv const char *  section,
const char *  variable,
const char *  env_var_name
[static]
 

Definition at line 93 of file ncbi_param.cpp.

References GetEnvVarName().

string @0::GetEnvVarName const char *  section,
const char *  variable,
const char *  env_var_name
[static]
 

Definition at line 71 of file ncbi_param.cpp.

References kNcbiConfigPrefix, and NStr::ToUpper().

Referenced by GetEnv().

bool @0::StringToBool const string &  value  )  [static]
 

Definition at line 61 of file ncbi_param.cpp.

References NStr::StringToInt().

Referenced by g_GetConfigFlag().


Variable Documentation

bool config_dump [static]
 

Initial value:

Definition at line 103 of file ncbi_param.cpp.

Referenced by g_GetConfigFlag(), g_GetConfigInt(), and g_GetConfigString().

const char* const CONFIG_DUMP_SECTION = "NCBI" [static]
 

Definition at line 101 of file ncbi_param.cpp.

const char* const CONFIG_DUMP_VARIABLE = "CONFIG_DUMP_VARIABLES" [static]
 

Definition at line 102 of file ncbi_param.cpp.

Referenced by g_GetConfigFlag().

const char* kNcbiConfigPrefix = "NCBI_CONFIG__"
 

Definition at line 56 of file ncbi_param.cpp.

Referenced by GetEnvVarName().


Generated on Mon Dec 7 07:36:05 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:45 2009 by modify_doxy.py rev. 173732