NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CBDB_BLobStream Class Reference

Search Toolkit Book for CBDB_BLobStream

Berkeley DB BLOB File stream. More...

#include <db/bdb/bdb_blob.hpp>

+ Collaboration diagram for CBDB_BLobStream:

Public Member Functions

 ~CBDB_BLobStream ()
 
void SetTransaction (CBDB_Transaction *trans)
 Set current transaction for BLOB stream. More...
 
void Read (void *buf, size_t buf_size, size_t *bytes_read)
 Read data from BLOB. More...
 
void Write (const void *buf, size_t buf_size)
 Write data into BLOB. More...
 
size_t PendingCount () const
 Return how much bytes we can read from the blob. More...
 

Protected Member Functions

 CBDB_BLobStream (DB *db, DBT *dbt_key, size_t blob_size, DB_TXN *txn)
 

Private Member Functions

 CBDB_BLobStream (const CBDB_BLobStream &)
 
CBDB_BLobStreamoperator= (const CBDB_BLobStream &)
 

Private Attributes

DBm_DB
 
DBTm_DBT_Key
 
DBTm_DBT_Data
 
DB_TXNm_Txn
 
unsigned m_Pos
 
size_t m_BlobSize
 

Friends

class CBDB_BLobFile
 

Detailed Description

Berkeley DB BLOB File stream.

Class wraps partial data read/write functionality of Berkeley DB. Both Read and Write functions of the class directly call corresponding Berkeley DB methods without any buffering. For performance reasons it's advised to read or write data in chunks of substantial size.

Definition at line 218 of file bdb_blob.hpp.


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:08:13 2024 by modify_doxy.py rev. 669887