NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
impl::CDBHandlerStack Class Reference

Search Toolkit Book for impl::CDBHandlerStack

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

Classes

class  CUserHandlerWrapper
 

Public Types

typedef CDB_Exception::SContext TDbgInfo
 
typedef deque< CRef< CUserHandlerWrapper > > TContainer
 

Public Member Functions

 CDBHandlerStack (void)
 
 CDBHandlerStack (const CDBHandlerStack &s)
 
 ~CDBHandlerStack (void)
 
CDBHandlerStackoperator= (const CDBHandlerStack &s)
 
size_t GetSize (void) const
 
void Push (CDB_UserHandler *h, EOwnership ownership=eNoOwnership)
 
void Pop (CDB_UserHandler *h, bool last=true)
 
void PostMsg (CDB_Exception *ex, const TDbgInfo *dbg_info=NULL, const CConnection *connection=NULL, const CDBParams *params=NULL) const
 
bool HandleExceptions (const CDB_UserHandler::TExceptions &exeptions, const TDbgInfo *dbg_info=NULL, const CConnection *connection=NULL, const CDBParams *params=NULL) const
 
bool HandleMessage (int severity, int msgnum, const string &message) const
 

Private Member Functions

void x_AddDetails (CDB_Exception &ex, const TDbgInfo *dbg_info, const CConnection *conn, const CDBParams *params) const
 

Private Attributes

TContainer m_Stack
 

Detailed Description

Definition at line 45 of file handle_stack.hpp.

Member Typedef Documentation

◆ TContainer

Definition at line 131 of file handle_stack.hpp.

◆ TDbgInfo

Definition at line 55 of file handle_stack.hpp.

Constructor & Destructor Documentation

◆ CDBHandlerStack() [1/2]

impl::CDBHandlerStack::CDBHandlerStack ( void  )

Definition at line 47 of file handle_stack.cpp.

◆ CDBHandlerStack() [2/2]

impl::CDBHandlerStack::CDBHandlerStack ( const CDBHandlerStack s)

Definition at line 111 of file handle_stack.cpp.

◆ ~CDBHandlerStack()

impl::CDBHandlerStack::~CDBHandlerStack ( void  )

Definition at line 51 of file handle_stack.cpp.

Member Function Documentation

◆ GetSize()

size_t impl::CDBHandlerStack::GetSize ( void  ) const
inline

◆ HandleExceptions()

bool impl::CDBHandlerStack::HandleExceptions ( const CDB_UserHandler::TExceptions exeptions,
const TDbgInfo dbg_info = NULL,
const CConnection connection = NULL,
const CDBParams params = NULL 
) const

Definition at line 157 of file handle_stack.cpp.

References ITERATE, m_Stack, REVERSE_ITERATE, and x_AddDetails().

◆ HandleMessage()

bool impl::CDBHandlerStack::HandleMessage ( int  severity,
int  msgnum,
const string message 
) const

◆ operator=()

CDBHandlerStack & impl::CDBHandlerStack::operator= ( const CDBHandlerStack s)

Definition at line 118 of file handle_stack.cpp.

References m_Stack.

◆ Pop()

void impl::CDBHandlerStack::Pop ( CDB_UserHandler h,
bool  last = true 
)

◆ PostMsg()

void impl::CDBHandlerStack::PostMsg ( CDB_Exception ex,
const TDbgInfo dbg_info = NULL,
const CConnection connection = NULL,
const CDBParams params = NULL 
) const

◆ Push()

void impl::CDBHandlerStack::Push ( CDB_UserHandler h,
EOwnership  ownership = eNoOwnership 
)

◆ x_AddDetails()

void impl::CDBHandlerStack::x_AddDetails ( CDB_Exception ex,
const TDbgInfo dbg_info,
const CConnection conn,
const CDBParams params 
) const
private

Member Data Documentation

◆ m_Stack

TContainer impl::CDBHandlerStack::m_Stack
private

Definition at line 137 of file handle_stack.hpp.

Referenced by GetSize(), HandleExceptions(), HandleMessage(), operator=(), Pop(), PostMsg(), and Push().


The documentation for this class was generated from the following files:
Modified on Thu May 23 12:35:31 2024 by modify_doxy.py rev. 669887