NCBI C++ ToolKit
Public Member Functions | List of all members
IReaderWriter Class Reference

Search Toolkit Book for IReaderWriter

A very basic data-read/write interface. More...

#include <corelib/reader_writer.hpp>

+ Inheritance diagram for IReaderWriter:
+ Collaboration diagram for IReaderWriter:

Public Member Functions

virtual ~IReaderWriter ()
- Public Member Functions inherited from IReader
virtual ERW_Result Read (void *buf, size_t count, size_t *bytes_read=0)=0
 Read as many as "count" bytes into a buffer pointed to by the "buf" argument. More...
virtual ERW_Result PendingCount (size_t *count)=0
 Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that are ready to be read from the input device without blocking. More...
virtual ERW_Result Pushback (const void *buf, size_t count, void *del_ptr=0)
 This method gets called by RStream buffer destructor to return buffered yet still unread (from the stream) portion of data back to the device. More...
virtual ~IReader ()
- Public Member Functions inherited from IWriter
virtual ERW_Result Write (const void *buf, size_t count, size_t *bytes_written=0)=0
 Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device. More...
virtual ERW_Result Flush (void)=0
 Flush pending data (if any) down to the output device. More...
virtual ~IWriter ()

Detailed Description

A very basic data-read/write interface.

See also
IReader, IWriter, CRWStream

Definition at line 177 of file reader_writer.hpp.

The documentation for this class was generated from the following files:
Modified on Mon Mar 04 05:11:39 2024 by rev. 669887