CurlStream Class Reference

(Internal) CurlStream inherits from std::stringstream and is used to support the librets "streaming" data feature. More...

#include <librets/CurlStream.h>

List of all members.

Public Member Functions

 CurlStream (CurlHttpClient &httpClient)
 This class inherits from std::stringstream and overrides the eof() and read() methods in order to work in concenrt with class CurlHttpClient and the cURL multi interface to imlement the streaming interface.
bool eof ()
 Determine if there is any more data.
std::istream & read (char *s, std::streamsize n)
 Read a block of data from the stream.


Detailed Description

(Internal) CurlStream inherits from std::stringstream and is used to support the librets "streaming" data feature.

Constructor & Destructor Documentation

CurlStream ( CurlHttpClient httpClient  ) 

This class inherits from std::stringstream and overrides the eof() and read() methods in order to work in concenrt with class CurlHttpClient and the cURL multi interface to imlement the streaming interface.

Parameters:
httpClient A reference to the CurlHttpClient for this call.


Member Function Documentation

bool eof (  ) 

Determine if there is any more data.

A side effect of this call is that the CurlHttpClient may be invoked to fetch further data from the network.

Returns:
True if there is no more data on the stream.

std::istream& read ( char *  s,
std::streamsize  n 
)

Read a block of data from the stream.

A side effect of this call is that the CurlHttpClient may be invoked to fetch further data from the network.

Parameters:
s A pointer to a buffer to which the data will be returned.
n The maximum size of the buffer.
Returns:
The result of the std::stringstream::read() call.


Generated by  doxygen