cgicc::FCgiIO Class Reference

Class that implements input and output through a FastCGI request. More...

#include <FCgiIO.h>

Inheritance diagram for cgicc::FCgiIO:

cgicc::CgiInput

Public Member Functions

Data Sources
virtual size_t read (char *data, size_t length)
 Read data from the request's input stream.
virtual std::string getenv (const char *varName)
 Query the value of an environment variable stored in the request.
Data Target Streams
std::ostream & err (void)
 Provides access to the error stream.

Protected Attributes

FCGX_Request & fRequest
fcgi_streambuf fOutBuf
fcgi_streambuf fErrBuf
std::ostream fErr
std::map< std::string, std::string > fEnv

Detailed Description

Class that implements input and output through a FastCGI request.

This class provides access to the input byte-stream and environment variable interfaces of a FastCGI request. It is fully compatible with the Cgicc input API.

It also provides access to the request's output and error streams, using a similar interface.

Definition at line 67 of file FCgiIO.h.


Constructor & Destructor Documentation

cgicc::FCgiIO::FCgiIO ( FCGX_Request &  request  ) 

Constructor.

Create a new FCgiIO object

Definition at line 34 of file FCgiIO.cpp.

References fEnv, fErr, fErrBuf, fOutBuf, and fRequest.

virtual cgicc::FCgiIO::~FCgiIO (  )  [inline, virtual]

Destructor.

Delete this FCgiIO object

Definition at line 95 of file FCgiIO.h.

cgicc::FCgiIO::FCgiIO ( FCGX_Request &  request  ) 

Constructor.

Create a new FCgiIO object

Definition at line 34 of file FCgiIO.cpp.

References fEnv, fErr, fErrBuf, fOutBuf, and fRequest.

virtual cgicc::FCgiIO::~FCgiIO (  )  [inline, virtual]

Destructor.

Delete this FCgiIO object

Definition at line 95 of file FCgiIO.h.


Member Function Documentation

virtual size_t cgicc::FCgiIO::read ( char *  data,
size_t  length 
) [inline, virtual]

Read data from the request's input stream.

Parameters:
data The target buffer
length The number of characters to read
Returns:
The number of characters read

Reimplemented from cgicc::CgiInput.

Definition at line 111 of file FCgiIO.h.

virtual std::string cgicc::FCgiIO::getenv ( const char *  varName  )  [inline, virtual]

Query the value of an environment variable stored in the request.

Parameters:
varName The name of an environment variable
Returns:
The value of the requested environment variable, or an empty string if not found.

Reimplemented from cgicc::CgiInput.

Definition at line 123 of file FCgiIO.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 3 15:44:48 2007 for GNUCgicc by  doxygen 1.5.1