* timeout,
size_tbuf_size,
56 const STimeout* timeout,
size_tbuf_size,
91 virtual int sync(
void);
105IOS_BASE::openmode which =
128{
returnpbase() < pptr() ?
sync() : 0; }
162 const char* message,
CConn_Streambuf(CONNECTOR connector, EIO_Status status, const STimeout *timeout, size_t buf_size, CConn_IOStream::TConn_Flags flags, CT_CHAR_TYPE *ptr, size_t size)
virtual ~CConn_Streambuf()
EIO_Status Status(EIO_Event direction) const
virtual CT_INT_TYPE underflow(void)
streamsize x_Read(CT_CHAR_TYPE *buf, streamsize n)
void x_Init(const STimeout *timeout, size_t buf_size, CConn_IOStream::TConn_Flags flags, CT_CHAR_TYPE *ptr, size_t size)
CT_POS_TYPE x_GetPPos(void)
CT_CHAR_TYPE * m_WriteBuf
string x_Message(const char *method, const char *message, EIO_Status status=eIO_Success, const STimeout *timeout=kInfiniteTimeout)
virtual CT_INT_TYPE overflow(CT_INT_TYPE c)
virtual streamsize _Xsgetn_s(CT_CHAR_TYPE *buf, size_t, streamsize n)
virtual streamsize xsgetn(CT_CHAR_TYPE *buf, streamsize n)
static EIO_Status x_OnClose(CONN conn, TCONN_Callback type, void *data)
EIO_Status Fetch(const STimeout *timeout)
virtual CT_POS_TYPE seekoff(CT_OFF_TYPE off, IOS_BASE::seekdir whence, IOS_BASE::openmode which=IOS_BASE::in|IOS_BASE::out)
Only seekoff(0, IOS_BASE::cur, *) to obtain the current position, and input skip-forward are permitte...
EIO_Status x_Close(bool close)
virtual streamsize xsputn(const CT_CHAR_TYPE *buf, streamsize n)
EIO_Status Pushback(const CT_CHAR_TYPE *data, streamsize size, bool push)
Push the specified data "data" of size "size" back into the underlying connection CONN.
virtual CNcbiStreambuf * setbuf(CT_CHAR_TYPE *buf, streamsize buf_size)
Only setbuf(0, 0) is allowed to make I/O unbuffered, other parameters will cause an exception thrown ...
virtual streamsize showmanyc(void)
EIO_Status x_Pushback(void) THROWS_NONE
CT_POS_TYPE x_GetGPos(void)
std::ofstream out("events_result.xml")
main entry point for tests
static CS_CONNECTION * conn
unsigned int TConn_Flags
bitwise OR of EConn_Flag
unsigned int TCONN_Callback
#define THROWS_NONE
Do not use 'throw' dynamic exception specification for C++11 compilers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::streambuf CNcbiStreambuf
Portable alias for streambuf.
EIO_Event
I/O event (or direction).
@ eIO_Success
everything is fine, no error occurred
const struct ncbi::grid::netcache::search::fields::SIZE size
#define CConn_StreambufBase
std::istream & in(std::istream &in_, double &x_)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4