NCBI C++ ToolKit
|
Search Toolkit Book for impl::CSendDataCmd
#include <dbapi/driver/impl/dbapi_impl_cmd.hpp>
Public Member Functions | |
CSendDataCmd (impl::CConnection &conn, size_t nof_bytes) | |
virtual | ~CSendDataCmd (void) |
size_t | GetBytes2Go (void) const |
Public Member Functions inherited from impl::CCmdBase | |
CCmdBase (impl::CConnection &conn) | |
virtual | ~CCmdBase () |
bool | WasSent (void) const |
Public Member Functions inherited from impl::CCommand | |
virtual | ~CCommand (void) |
void | Release (void) |
Protected Member Functions | |
virtual size_t | SendChunk (const void *pChunk, size_t nofBytes)=0 |
Send chunk of data to the server. More... | |
virtual bool | Cancel (void)=0 |
virtual CDB_Result * | Result (void) |
Get result set. More... | |
virtual bool | HasMoreResults (void) const |
void | DumpResults (void) |
Dump the results of the command if result processor is installed for this connection, it will be called for each result set. More... | |
void | DetachSendDataIntf (void) |
void | SetBytes2Go (size_t value) |
Protected Member Functions inherited from impl::CCmdBase | |
void | SetWasSent (bool flag=true) |
impl::CConnection & | GetConnImpl (void) const |
Private Member Functions | |
void | AttachTo (CDB_SendDataCmd *interface) |
Private Attributes | |
CInterfaceHook< CDB_SendDataCmd > | m_Interface |
size_t | m_Bytes2Go |
Friends | |
class | ncbi::CDB_SendDataCmd |
Additional Inherited Members | |
Static Public Member Functions inherited from impl::CCommand | |
static CDB_Result * | Create_Result (CResult &result) |
Definition at line 338 of file dbapi_impl_cmd.hpp.
impl::CSendDataCmd::CSendDataCmd | ( | impl::CConnection & | conn, |
size_t | nof_bytes | ||
) |
Definition at line 306 of file dbapi_impl_cmd.cpp.
|
virtual |
Definition at line 313 of file dbapi_impl_cmd.cpp.
|
private |
Definition at line 325 of file dbapi_impl_cmd.cpp.
References m_Interface.
Referenced by CDB_SendDataCmd::CDB_SendDataCmd().
|
protectedpure virtual |
Implemented in CODBC_SendDataCmd, and CTL_SendDataCmd.
Referenced by CDB_SendDataCmd::Cancel().
|
protected |
Definition at line 319 of file dbapi_impl_cmd.cpp.
References CInterfaceHook< I >::DetachInterface(), and m_Interface.
Referenced by CTL_SendDataCmd::Close(), CODBC_SendDataCmd::~CODBC_SendDataCmd(), and CTL_SendDataCmd::~CTL_SendDataCmd().
|
protected |
Dump the results of the command if result processor is installed for this connection, it will be called for each result set.
Definition at line 344 of file dbapi_impl_cmd.cpp.
References impl::CCmdBase::GetConnImpl(), impl::CConnection::GetResultProcessor(), HasMoreResults(), CDB_ResultProcessor::ProcessResult(), and Result().
Referenced by CDB_SendDataCmd::DumpResults().
|
inline |
Definition at line 348 of file dbapi_impl_cmd.hpp.
References m_Bytes2Go.
Referenced by CTL_SendDataCmd::Cancel(), CODBC_SendDataCmd::Cancel(), CTL_SendDataCmd::SendChunk(), and CODBC_SendDataCmd::SendChunk().
|
protectedvirtual |
Reimplemented in CODBC_SendDataCmd, and CTL_SendDataCmd.
Definition at line 338 of file dbapi_impl_cmd.cpp.
Referenced by DumpResults(), and CDB_SendDataCmd::HasMoreResults().
|
protectedvirtual |
Get result set.
Reimplemented in CODBC_SendDataCmd, and CTL_SendDataCmd.
Definition at line 331 of file dbapi_impl_cmd.cpp.
References NULL.
Referenced by DumpResults(), and CDB_SendDataCmd::Result().
|
protectedpure virtual |
Send chunk of data to the server.
Return number of bytes actually transferred to server.
Implemented in CODBC_SendDataCmd, and CTL_SendDataCmd.
Referenced by CDB_SendDataCmd::SendChunk().
|
inlineprotected |
Definition at line 374 of file dbapi_impl_cmd.hpp.
References m_Bytes2Go, and rapidjson::value.
Referenced by CTL_SendDataCmd::Cancel(), CODBC_SendDataCmd::Cancel(), CTL_SendDataCmd::SendChunk(), and CODBC_SendDataCmd::SendChunk().
|
friend |
Definition at line 340 of file dbapi_impl_cmd.hpp.
|
private |
Definition at line 385 of file dbapi_impl_cmd.hpp.
Referenced by GetBytes2Go(), and SetBytes2Go().
|
private |
Definition at line 382 of file dbapi_impl_cmd.hpp.
Referenced by AttachTo(), and DetachSendDataIntf().