A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/demo4_8cpp_source.html below:

NCBI C++ ToolKit: src/db/bdb/demo/demo4.cpp Source File

47 const int array1

[] = {1, 2, 3, 4, 5, 0};

48 const int array2

[] = {10, 20, 30, 40, 50, 0};

66

cout <<

"Insert failed!"

<< endl;

71

cout <<

"Insert failed!"

<< endl;

96

cout <<

"Insufficient buffer size!"

<< endl;

101  for

(

size_t i

= 0;

i

<

size

/

sizeof

(

buffer

[0]); ++

i

) {

107

cout <<

"BLOB 1 not found"

<< endl;

114  void

* ptr = (

void

*)

buffer

;

122  for

(

size_t i

= 0;

i

<

size

/

sizeof

(

buffer

[0]); ++

i

) {

127

cout <<

"BLOB 2 not found"

<< endl;

163  NcbiCout

<<

"Insert failed!"

<< endl;

172  NcbiCerr

<<

"Insert failed!"

<< endl;

197  for

(

size_t i

= 0;

i

<

size

/

sizeof

(

buffer

[0]); ++

i

) {

228

d->SetUsageContext(

"bdb demo1"

,

229  "Demo1 application for BDB library"

);

245

cout <<

"Error! DBD errno exception:"

<< ex.what();

250

cout <<

"Error! DBD library exception:"

<< ex.what();

258 int main

(

int

argc,

const char

* argv[])

BDB library BLOB support.

int Run(void)

Run the application.

void Init(void)

Initialize the application.

Berkeley DB BLOB File class.

BDB errno exception class.

String field type designed to work with C-strings (ASCIIZ)

Berkeley DB Large Object File class.

int main(int argc, const char *argv[])

int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)

Main function (entry point) for the NCBI application.

virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)

Setup the command line argument descriptions.

size_t LobSize() const

Get LOB size. Becomes available right after successfull Fetch.

size_t LobSize() const

Get LOB size. Becomes available right after successfull Fetch.

EBDB_ErrCode Insert(const void *data, size_t size)

Insert BLOB into the database.

EBDB_ErrCode Fetch(unsigned int lob_id)

Fetch LOB record.

EBDB_ErrCode GetData(void *buf, size_t size)

Copy LOB data into the 'buf'.

EBDB_ErrCode Fetch()

Fetch the record corresponding to the current key value.

EBDB_ErrCode Insert(unsigned int lob_id, const void *data, size_t size)

Insert BLOB data into the database, does nothing if key exists.

EBDB_ErrCode GetData(void *buf, size_t size)

Copy LOB data into the 'buf'.

void Open(const string &filename, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)

Open file with specified access mode.

void BindKey(const char *field_name, CBDB_Field *key_field, size_t buf_size=0)

void Open(const string &filename, EOpenMode open_mode, bool support_dirty_read=false, unsigned rec_len=0)

Open file with specified access mode.

EBDB_ErrCode

BDB Return codes.

@ eCreate

implies 'eReadWrite' too

void SetDiagPostFlag(EDiagPostFlag flag)

Set the specified flag (globally).

EDiagSev SetDiagPostLevel(EDiagSev post_sev=eDiag_Error)

Set the threshold severity for posting the messages.

@ eDPF_File

File name (not full path)

@ eDiag_Warning

Warning message.

const struct ncbi::grid::netcache::search::fields::SIZE size

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4