NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
impl::CSendDataCmd Class Referenceabstract

Search Toolkit Book for impl::CSendDataCmd

#include <dbapi/driver/impl/dbapi_impl_cmd.hpp>

+ Inheritance diagram for impl::CSendDataCmd:
+ Collaboration diagram for impl::CSendDataCmd:

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_ResultResult (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::CConnectionGetConnImpl (void) const
 

Private Member Functions

void AttachTo (CDB_SendDataCmd *interface)
 

Private Attributes

CInterfaceHook< CDB_SendDataCmdm_Interface
 
size_t m_Bytes2Go
 

Friends

class ncbi::CDB_SendDataCmd
 

Additional Inherited Members

- Static Public Member Functions inherited from impl::CCommand
static CDB_ResultCreate_Result (CResult &result)
 

Detailed Description

Definition at line 338 of file dbapi_impl_cmd.hpp.

Constructor & Destructor Documentation

◆ CSendDataCmd()

impl::CSendDataCmd::CSendDataCmd ( impl::CConnection conn,
size_t  nof_bytes 
)

Definition at line 306 of file dbapi_impl_cmd.cpp.

◆ ~CSendDataCmd()

impl::CSendDataCmd::~CSendDataCmd ( void  )
virtual

Definition at line 313 of file dbapi_impl_cmd.cpp.

Member Function Documentation

◆ AttachTo()

void impl::CSendDataCmd::AttachTo ( CDB_SendDataCmd interface)
private

Definition at line 325 of file dbapi_impl_cmd.cpp.

References m_Interface.

Referenced by CDB_SendDataCmd::CDB_SendDataCmd().

◆ Cancel()

virtual bool impl::CSendDataCmd::Cancel ( void  )
protectedpure virtual

Implemented in CODBC_SendDataCmd, and CTL_SendDataCmd.

Referenced by CDB_SendDataCmd::Cancel().

◆ DetachSendDataIntf()

void impl::CSendDataCmd::DetachSendDataIntf ( void  )
protected

◆ DumpResults()

void impl::CSendDataCmd::DumpResults ( void  )
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().

◆ GetBytes2Go()

size_t impl::CSendDataCmd::GetBytes2Go ( void  ) const
inline

◆ HasMoreResults()

bool impl::CSendDataCmd::HasMoreResults ( void  ) const
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().

◆ Result()

CDB_Result * impl::CSendDataCmd::Result ( void  )
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().

◆ SendChunk()

virtual size_t impl::CSendDataCmd::SendChunk ( const void *  pChunk,
size_t  nofBytes 
)
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().

◆ SetBytes2Go()

void impl::CSendDataCmd::SetBytes2Go ( size_t  value)
inlineprotected

Friends And Related Function Documentation

◆ ncbi::CDB_SendDataCmd

friend class ncbi::CDB_SendDataCmd
friend

Definition at line 340 of file dbapi_impl_cmd.hpp.

Member Data Documentation

◆ m_Bytes2Go

size_t impl::CSendDataCmd::m_Bytes2Go
private

Definition at line 385 of file dbapi_impl_cmd.hpp.

Referenced by GetBytes2Go(), and SetBytes2Go().

◆ m_Interface

CInterfaceHook<CDB_SendDataCmd> impl::CSendDataCmd::m_Interface
private

Definition at line 382 of file dbapi_impl_cmd.hpp.

Referenced by AttachTo(), and DetachSendDataIntf().


The documentation for this class was generated from the following files:
Modified on Wed May 22 11:31:36 2024 by modify_doxy.py rev. 669887