NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbiargs.hpp>
#include <assert.h>
#include <db/bdb/bdb_blob.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | SDemoDB |
class | CBDB_BLobDemo1 |
BLob Demo application. More... | |
Functions | |
void | LoadBLOB_Table () |
void | PrintBLOB_Table () |
void | LoadDemoDB () |
void | PrintDemoDB () |
int | main (int argc, const char *argv[]) |
Variables | |
USING_NCBI_SCOPE | |
string | s_LobDBFileName = "blobstore.db" |
string | s_LobDBFileName2 = "blobstore2.db" |
const int | array1 [] = {1, 2, 3, 4, 5, 0} |
const int | array2 [] = {10, 20, 30, 40, 50, 0} |
void LoadBLOB_Table | ( | ) |
Definition at line 58 of file demo4.cpp.
References array1, array2, eBDB_Ok, CBDB_RawFile::eCreate, exit(), CBDB_LobFile::Insert(), CBDB_RawFile::Open(), and s_LobDBFileName.
Referenced by CBDB_BLobDemo1::Run().
void LoadDemoDB | ( | ) |
Definition at line 152 of file demo4.cpp.
References array1, array2, eBDB_Ok, CBDB_RawFile::eCreate, exit(), CBDB_BLobFile::Insert(), SDemoDB::key, NcbiCerr, NcbiCout, CBDB_File::Open(), s_LobDBFileName2, and SDemoDB::subkey.
Referenced by CBDB_BLobDemo1::Run().
Definition at line 258 of file demo4.cpp.
References CNcbiApplicationAPI::AppMain().
void PrintBLOB_Table | ( | ) |
Definition at line 78 of file demo4.cpp.
References assert, buffer, eBDB_Ok, CBDB_RawFile::eReadOnly, CBDB_RawFile::eReallocForbidden, CBDB_LobFile::Fetch(), CBDB_LobFile::GetData(), i, CBDB_LobFile::LobSize(), CBDB_RawFile::Open(), s_LobDBFileName, and ncbi::grid::netcache::search::fields::size.
Referenced by CBDB_BLobDemo1::Run().
void PrintDemoDB | ( | ) |
Definition at line 177 of file demo4.cpp.
References assert, buffer, eBDB_Ok, CBDB_RawFile::eReadOnly, CBDB_BLobFile::Fetch(), CBDB_BLobFile::GetData(), i, SDemoDB::key, CBDB_BLobFile::LobSize(), NcbiCout, NcbiEndl, CBDB_File::Open(), s_LobDBFileName2, ncbi::grid::netcache::search::fields::size, and SDemoDB::subkey.
Referenced by CBDB_BLobDemo1::Run().
Definition at line 47 of file demo4.cpp.
Referenced by LoadBLOB_Table(), and LoadDemoDB().
Definition at line 48 of file demo4.cpp.
Referenced by LoadBLOB_Table(), and LoadDemoDB().
string s_LobDBFileName = "blobstore.db" |
Definition at line 43 of file demo4.cpp.
Referenced by LoadBLOB_Table(), and PrintBLOB_Table().
string s_LobDBFileName2 = "blobstore2.db" |
Definition at line 44 of file demo4.cpp.
Referenced by LoadDemoDB(), and PrintDemoDB().