NCBI C++ ToolKit
Macros | Functions | Variables
ncbi_param.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_param.hpp>
#include <corelib/error_codes.hpp>
#include "ncbisys.hpp"
+ Include dependency graph for ncbi_param.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define NCBI_USE_ERRCODE_X   Corelib_Config
 
#define DUMP_CONFIG(code, data)
 

Functions

bool g_GetConfigFlag (const char *section, const char *variable, const char *env_var_name, bool default_value)
 Get boolean configuration value. More...
 
int g_GetConfigInt (const char *section, const char *variable, const char *env_var_name, int default_value)
 Get integer configuration value. More...
 
double g_GetConfigDouble (const char *section, const char *variable, const char *env_var_name, double default_value)
 Get double configuration value. More...
 
string g_GetConfigString (const char *section, const char *variable, const char *env_var_name, const char *default_value, CParamBase::EParamSource *src)
 Helper functions for getting values from registry/environment. More...
 

Variables

static CAtomicCounter_WithAutoInit s_ConfigDumpDisabled (0)
 Helper functions for getting values from registry/environment. More...
 
const char * kNcbiConfigPrefix = "NCBI_CONFIG__"
 

Macro Definition Documentation

◆ DUMP_CONFIG

#define DUMP_CONFIG (   code,
  data 
)
Value:
if ( !s_InConfigDump ) { \
s_InConfigDump = true; \
ERR_POST_X(code, Note << data); \
s_InConfigDump = false; \
}
char data[12]
Definition: iconv.c:80
where both of them are integers Note
Definition: inftrees.h:24

Definition at line 126 of file ncbi_param.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Corelib_Config

Definition at line 40 of file ncbi_param.cpp.

Variable Documentation

◆ kNcbiConfigPrefix

const char* kNcbiConfigPrefix = "NCBI_CONFIG__"

Definition at line 62 of file ncbi_param.cpp.

◆ s_ConfigDumpDisabled

CAtomicCounter_WithAutoInit s_ConfigDumpDisabled(0) ( )
static

Helper functions for getting values from registry/environment.

Referenced by CParamBase::EnableConfigDump().

Modified on Sat May 25 14:19:59 2024 by modify_doxy.py rev. 669887