NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbifile.hpp>
#include <db/bdb/bdb_util.hpp>
#include <db/bdb/bdb_env.hpp>
#include <db/error_codes.hpp>
#include <util/strsearch.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | NCBI_USE_ERRCODE_X Db_Bdb_Util |
Functions | |
static const char * | BDB_GetStringFieldBuf (const CBDB_Field &fld) |
Check if field is a variant of string, returns pointer on the internal buffer (or NULL). More... | |
static int | BDB_find_field (const CBDB_BufferManager &buffer_man, const CBoyerMooreMatcher &matcher, string *tmp_str) |
Search for value in the field buffer. More... | |
CBDB_File::TUnifiedFieldIndex | BDB_find_field (const CBDB_File &dbf, const CBoyerMooreMatcher &matcher, string *tmp_str) |
Find index of field containing the specified value Search condition is specified by CBoyerMooreMatcher By default search is performed in string fields, but if tmp_str_buffer is specified function will try to convert non-strings(int, float) and search in there. More... | |
int | BDB_get_rowid (const CBDB_File &dbf) |
Return record id (integer key) More... | |
template<typename T > | |
void | s_LogEnvParam (const string ¶m_name, const T ¶m_value, const string &units=kEmptyStr) |
Log a parameter in a human-readable format. More... | |
static void | s_LogEnvParam (const string ¶m_name, const bool ¶m_value) |
Log a parameter in a human-readable format. More... | |
CBDB_Env * | BDB_CreateEnv (const CNcbiRegistry ®, const string §ion_name) |
Create and configure BDB environment using CNcbiRegistry as a parameter container. More... | |
#define NCBI_USE_ERRCODE_X Db_Bdb_Util |
Definition at line 40 of file bdb_util.cpp.
|
static |
Search for value in the field buffer.
Definition at line 72 of file bdb_util.cpp.
References BDB_GetStringFieldBuf(), CBDB_BufferManager::FieldCount(), IBDB_Field::GetDataLength(), CBDB_BufferManager::GetField(), i, CBDB_Field::IsNull(), match(), NPOS, CBoyerMooreMatcher::Search(), and IBDB_FieldConvert::ToString().
Referenced by BDB_find_field().
|
static |
Check if field is a variant of string, returns pointer on the internal buffer (or NULL).
Definition at line 50 of file bdb_util.cpp.
References CBDB_Field::GetBuffer().
Referenced by BDB_find_field().
Log a parameter in a human-readable format.
Definition at line 196 of file bdb_util.cpp.
References Info(), and LOG_POST_X.
void s_LogEnvParam | ( | const string & | param_name, |
const T & | param_value, | ||
const string & | units = kEmptyStr |
||
) |
Log a parameter in a human-readable format.
Definition at line 182 of file bdb_util.cpp.
References Info(), and LOG_POST_X.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 214 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 213 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 229 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 231 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 232 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 217 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 218 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 230 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 210 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 222 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 221 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 220 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 215 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 225 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 224 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 212 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 233 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 226 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 227 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 208 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 209 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 223 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 219 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 207 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().
|
static |
Definition at line 216 of file bdb_util.cpp.
Referenced by BDB_CreateEnv().