src/corelib/rwstreambuf.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbidbg.hpp>
#include <corelib/ncbiexpt.hpp>
#include <corelib/reader_writer.hpp>
#include <corelib/rwstream.hpp>
#include <corelib/error_codes.hpp>

Include dependency graph for rwstreambuf.cpp:

Go to the source code of this file.

Defines

#define NCBI_USE_ERRCODE_X   Corelib_StreamBuf
#define RWSTREAMBUF_CATCH_ALL(err_subcode, message, action)

Variables

static const streamsize kDefaultBufSize = 4096


Define Documentation

#define NCBI_USE_ERRCODE_X   Corelib_StreamBuf
 

Definition at line 40 of file rwstreambuf.cpp.

#define RWSTREAMBUF_CATCH_ALL err_subcode,
message,
action   ) 
 

Value:

catch (CException& e) {                                               \
      if (m_Flags & fLogExceptions) {                                   \
          try {                                                         \
              NCBI_REPORT_EXCEPTION_X(err_subcode, message, e);         \
          } catch (...) {                                               \
          }                                                             \
      }                                                                 \
      action;                                                           \
  }                                                                     \
  catch (exception& e) {                                                \
      if (m_Flags & fLogExceptions) {                                   \
          try {                                                         \
              ERR_POST_X(err_subcode, Error << "[" << message           \
                         << "] Exception: " << e.what());               \
          } catch (...) {                                               \
          }                                                             \
      }                                                                 \
      action;                                                           \
  }                                                                     \
  catch (...) {                                                         \
      if (m_Flags & fLogExceptions) {                                   \
          try {                                                         \
              ERR_POST_X(err_subcode, Error                             \
                         << "[" << message << "] Unknown exception");   \
          } catch (...) {                                               \
          }                                                             \
      }                                                                 \
      action;                                                           \
  }

Definition at line 43 of file rwstreambuf.cpp.

Referenced by CRWStreambuf::overflow(), CRWStreambuf::underflow(), and CRWStreambuf::xsgetn().


Variable Documentation

const streamsize kDefaultBufSize = 4096 [static]
 

Definition at line 78 of file rwstreambuf.cpp.

Referenced by CRWStreambuf::CRWStreambuf(), and CRWStreambuf::setbuf().


Generated on Mon Dec 7 07:37:01 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:45 2009 by modify_doxy.py rev. 173732