NCBI C++ ToolKit
|
Search Toolkit Book for CBlobBookmark
Object used to store bookmarks to blobs to be changed later. More...
#include <dbapi/simple/sdbapi.hpp>
Public Types | |
enum | EBlobType { eUnknown , eText , eBinary } |
Blob type (if known). More... | |
Public Member Functions | |
CNcbiOstream & | GetOStream (size_t blob_size, TBlobOStreamFlags flags=0) const |
Get Blob output stream. More... | |
CNcbiOstream & | GetOStream (size_t blob_size, CQuery::EAllowLog log_it) const |
CBlobBookmark (void) | |
Empty constructor of bookmark object. More... | |
~CBlobBookmark (void) | |
CBlobBookmark (const CBlobBookmark &bm) | |
Copy of bookmark object. More... | |
CBlobBookmark & | operator= (const CBlobBookmark &bm) |
Private Member Functions | |
CBlobBookmark (CBlobBookmarkImpl *bm_impl) | |
Create bookmark with the given implementation. More... | |
Private Attributes | |
CRef< CBlobBookmarkImpl > | m_Impl |
Bookmark implementation object. More... | |
Friends | |
class | CDatabase |
class | CRemoteQFB |
Object used to store bookmarks to blobs to be changed later.
Definition at line 765 of file sdbapi.hpp.
CBlobBookmark::CBlobBookmark | ( | void | ) |
Empty constructor of bookmark object.
Object created this way cannot be used for anything except assigning from the other bookmark object.
Definition at line 3503 of file sdbapi.cpp.
CBlobBookmark::~CBlobBookmark | ( | void | ) |
Definition at line 3521 of file sdbapi.cpp.
CBlobBookmark::CBlobBookmark | ( | const CBlobBookmark & | bm | ) |
Copy of bookmark object.
Definition at line 3510 of file sdbapi.cpp.
|
private |
Create bookmark with the given implementation.
Definition at line 3506 of file sdbapi.cpp.
CNcbiOstream & CBlobBookmark::GetOStream | ( | size_t | blob_size, |
CQuery::EAllowLog | log_it | ||
) | const |
Definition at line 3531 of file sdbapi.cpp.
References CQuery::eDisableLog, fBOS_SkipLogging, and GetOStream().
CNcbiOstream & CBlobBookmark::GetOStream | ( | size_t | blob_size, |
TBlobOStreamFlags | flags = 0 |
||
) | const |
Get Blob output stream.
Blob will be updated using the same database connection which this bookmark was create on. Thus it shouldn't have any active queries or bulk inserts by the time this method is called and until the stream is not used anymore.
blob_size | blob_size is the size of the BLOB to be written. |
flags |
log_it | Enables transaction log for BLOB (enabled by default). Make sure you have enough log segment space, or disable it. |
Definition at line 3525 of file sdbapi.cpp.
References flags, CRef< C, Locker >::GetNCPointer(), CBlobBookmarkImpl::GetOStream(), and m_Impl.
Referenced by GetOStream().
CBlobBookmark & CBlobBookmark::operator= | ( | const CBlobBookmark & | bm | ) |
Definition at line 3515 of file sdbapi.cpp.
References m_Impl.
|
friend |
Definition at line 802 of file sdbapi.hpp.
|
friend |
Definition at line 803 of file sdbapi.hpp.
|
private |
Bookmark implementation object.
Definition at line 810 of file sdbapi.hpp.
Referenced by GetOStream(), and operator=().