summaryrefslogtreecommitdiff
path: root/project2/cgi/FCgiIO.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/FCgiIO.h')
-rw-r--r--project2/cgi/FCgiIO.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/project2/cgi/FCgiIO.h b/project2/cgi/FCgiIO.h
index a8b67f3..7811fac 100644
--- a/project2/cgi/FCgiIO.h
+++ b/project2/cgi/FCgiIO.h
@@ -45,7 +45,7 @@
#include <map>
#include "fcgio.h"
-
+#include "cgiEnvInput.h"
#include "cgicc/CgiInput.h"
namespace cgicc {
@@ -64,7 +64,7 @@ namespace cgicc {
* It also provides access to the request's output and error streams, using a
* similar interface.
*/
- class CGICC_API FCgiIO : public cgicc::CgiInput, public std::ostream
+ class CGICC_API FCgiIO : public cgicc::CgiInput, public CgiEnvInput, public std::ostream
{
public:
@@ -91,9 +91,7 @@ namespace cgicc {
*
* Delete this FCgiIO object
*/
- virtual inline
- ~FCgiIO()
- {}
+ virtual ~FCgiIO();
//@}
// ============================================================
@@ -108,10 +106,7 @@ namespace cgicc {
* \param length The number of characters to read
* \return The number of characters read
*/
- virtual inline size_t read(char *data, size_t length)
- {
- return FCGX_GetStr(data, length, fRequest.in);
- }
+ virtual size_t read(char *data, size_t length);
/*!
* \brief Query the value of an environment variable stored in the request.
@@ -120,10 +115,8 @@ namespace cgicc {
* \return The value of the requested environment variable, or an empty
* string if not found.
*/
- virtual inline std::string getenv(const char *varName)
- {
- return fEnv[varName];
- }
+ virtual std::string getenv(const char *varName);
+ virtual std::string getenv(const std::string & varName) const;
//@}
// ============================================================
@@ -134,10 +127,7 @@ namespace cgicc {
/*!
* \brief Provides access to the error stream.
*/
- inline std::ostream& err(void)
- {
- return fErr;
- }
+ std::ostream& err();
//@}
protected: