part II of rewriting

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@635 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-08-12 19:10:12 +00:00
parent c3fac2e83f
commit 9a199cd834
38 changed files with 1159 additions and 1167 deletions

View File

@@ -22,7 +22,7 @@ class PostParser : public HttpSimpleParser
{
FCGX_Stream * in;
PostTab & post_tab;
PostTab * post_tab;
protected:
@@ -35,7 +35,7 @@ protected:
virtual void Parameter(std::string & name, std::string & value)
{
std::pair<PostTab::iterator, bool> res = post_tab.insert( std::make_pair(name, value) );
std::pair<PostTab::iterator, bool> res = post_tab->insert( std::make_pair(name, value) );
log << log2 << "Method POST, name: \"" << name << "\", value: \"" << value << "\"";
@@ -48,8 +48,12 @@ protected:
public:
PostParser(FCGX_Stream * in_, PostTab & post_tab_) : in(in_), post_tab(post_tab_)
void Parse(FCGX_Stream * in_, PostTab & post_tab_)
{
in = in_;
post_tab = &post_tab_;
HttpSimpleParser::Parse();
}
};