Main Page | Namespace List | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

NForm.cp File Reference

Methods to handle form data in CGI processing. More...

#include <NCapture.h>
#include <NForm.h>
#include <NEnvironment.h>
#include <cassert>

Include dependency graph for NForm.cp:

Include dependency graph

Go to the source code of this file.

Defines

#define MW_CGI   monsterworks::cgi
 shorten our common namespace while allowing doxygen to work correctly

Functions

void NFormInitialize ()
 initializes the NForm namespace
void NFormInitialize ()

Variables

string ourPostData
 The raw POST data.
monsterworks::cgi::FormPairs ourFormPairs
 The POST data as key/value pairs.
monsterworks::cgi::QueryWords ourQueryWords
 The Query string as kewords.
monsterworks::cgi::FormPairs ourQueryPairs
 The Query string as key/value pairs.


Detailed Description

Methods to handle form data in CGI processing.

Author
eeyore
Date
2004/04/13 05:04:23

Copyright (c) 2004 eeyore@monsterworks.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2.

This program is distributed in the hope that it wil be found useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MECHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Gnu Public License in the documentation or read the source of MonsterworksCopyright.h.

You should have received a copy of the GNU General Public Licence along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307 USA.

Definition in file NForm.cp.


Define Documentation

#define MW_CGI   monsterworks::cgi
 

shorten our common namespace while allowing doxygen to work correctly

Definition at line 24 of file NForm.cp.


Function Documentation

void NFormInitialize  )  [static]
 

This method initializes the NForm namespace. It returns immediately if NForm has already been initialized.

This method should be the first function called in all of NForm's methods. Definition at line 203 of file NForm.cp.

References monsterworks::cgi::NCapture::GetStandardInput(), monsterworks::cgi::NEnvironment::GetValue(), ourFormPairs, ourPostData, ourQueryPairs, ourQueryWords, monsterworks::cgi::NWWWCodec::StringToPairs(), and monsterworks::cgi::NWWWCodec::StringToWords().

void NFormInitialize  )  [static]
 

initializes the NForm namespace

Referenced by monsterworks::cgi::NForm::GetFormPairs(), monsterworks::cgi::NForm::GetInt(), monsterworks::cgi::NForm::GetPostData(), monsterworks::cgi::NForm::GetQueryPairs(), monsterworks::cgi::NForm::GetQueryWords(), and monsterworks::cgi::NForm::GetString().


Variable Documentation

monsterworks::cgi ::FormPairs ourFormPairs [static]
 

The POST data as key/value pairs.

Definition at line 42 of file NForm.cp.

Referenced by monsterworks::cgi::NForm::GetFormPairs(), monsterworks::cgi::NForm::GetInt(), monsterworks::cgi::NForm::GetString(), and NFormInitialize().

string ourPostData [static]
 

The raw POST data.

Definition at line 41 of file NForm.cp.

Referenced by monsterworks::cgi::NForm::GetPostData(), and NFormInitialize().

monsterworks::cgi ::FormPairs ourQueryPairs [static]
 

The Query string as key/value pairs.

Definition at line 44 of file NForm.cp.

Referenced by monsterworks::cgi::NForm::GetInt(), monsterworks::cgi::NForm::GetQueryPairs(), monsterworks::cgi::NForm::GetString(), and NFormInitialize().

monsterworks::cgi ::QueryWords ourQueryWords [static]
 

The Query string as kewords.

Definition at line 43 of file NForm.cp.

Referenced by monsterworks::cgi::NForm::GetQueryWords(), and NFormInitialize().


monsterworks Code by Monsterworks. Made available under the GNU Public License.
Documentation by doxygen.