#include <cgicc/CgiInput.h>
Public Methods | |
Constructor and Destructor | |
CgiInput () | |
Constructor. More... | |
CgiInput (const CgiInput &input) | |
Copy constructor. More... | |
virtual | ~CgiInput () |
Destructor. More... | |
Overloaded Operators | |
bool | operator== (const CgiInput &) const |
Compare two CgiInput objects for equality. More... | |
bool | operator!= (const CgiInput &input) const |
Compare two CgiInput objects for inequality. More... | |
CgiInput & | operator= (const CgiInput &) |
Assign one CgiInput to another. More... | |
Data Sources | |
virtual size_t | read (char *data, size_t length) |
Read data from a data source. More... | |
virtual std::string | getenv (const char *varName) |
Query the value of an environment variable. More... |
The CgiInput
class is an abstraction for all input data to the CGI application. This allows input data to come from something other than standard input (cin). This is useful, in fact necessary, when using cgicc with FastCgi. Library users wishing to exploit this functionality should create a subclass and override the read
and getenv
methods.
Definition at line 56 of file CgiInput.h.
|
Constructor.
Create a new CgiInput object Definition at line 71 of file CgiInput.h. |
|
Copy constructor.
If you subclass CgiInput, you must overload operator=
Definition at line 82 of file CgiInput.h. |
|
Destructor.
Delete this CgiInput object |
|
Query the value of an environment variable.
In the default implementation, this is a wrapper for std::getenv()
|
|
Compare two CgiInput objects for inequality.
In the default implementation all CgiInput objects are equal
Definition at line 118 of file CgiInput.h. |
|
Assign one CgiInput to another.
Does nothing in the default implementation
Definition at line 129 of file CgiInput.h. |
|
Compare two CgiInput objects for equality.
In the default implementation all CgiInput objects are equal
Definition at line 107 of file CgiInput.h. |
|
Read data from a data source.
In the default implementation, this is a wrapper for
|