NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CStringReader Class Reference

Search Toolkit Book for CStringReader

string-based IReader More...

#include <corelib/stream_utils.hpp>

+ Inheritance diagram for CStringReader:
+ Collaboration diagram for CStringReader:

Public Member Functions

 CStringReader (const string &s)
 
virtual ERW_Result Read (void *buf, size_t count, size_t *bytes_read)
 Read as many as "count" bytes into a buffer pointed to by the "buf" argument. More...
 
virtual ERW_Result PendingCount (size_t *count)
 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...
 
- Public Member Functions inherited from IReader
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 ()
 

Private Attributes

string m_String
 
SIZE_TYPE m_Position
 

Detailed Description

string-based IReader

Definition at line 202 of file stream_utils.hpp.


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