#include <ulxr_htmlform_handler.h>
Public Types | |
typedef std::map< CppString, std::vector< CppString > > | Elements |
Public Member Functions | |
void | addElement (const CppString &name, const CppString &value) |
Adds another name/value pair from a form. | |
std::vector< CppString > | getElement (const CppString &name) const |
Gets all the values for a form element. | |
std::vector< CppString > | getElement (const CppString &name, unsigned index) const |
Gets all the values for a form element. | |
bool | hasElement (const CppString &name) const |
Determines if an element is available in the form. | |
bool | hasElement (const CppString &name, unsigned index) const |
Determines if an element is available in the form. | |
unsigned | size () const |
Gets the number of available elements. | |
Private Attributes | |
Elements | elements |
Definition at line 46 of file ulxr_htmlform_handler.h.
typedef std::map<CppString, std::vector<CppString> > ulxr::HtmlFormData::Elements |
Definition at line 49 of file ulxr_htmlform_handler.h.
Adds another name/value pair from a form.
name | the name of the form element | |
value | the form elements value |
Definition at line 609 of file ulxr_htmlform_handler.cpp.
Referenced by ulxr::HtmlFormHandler::extractFormElements().
Gets all the values for a form element.
name | the name of the form element |
Definition at line 615 of file ulxr_htmlform_handler.cpp.
References ulxr::ApplicationError, ulxr_i18n, and ULXR_PCHAR.
std::vector< CppString > ulxr::HtmlFormData::getElement | ( | const CppString & | name, | |
unsigned | index | |||
) | const |
Gets all the values for a form element.
Intended for numbered elements with the pattern "name" "_" [number] as created by HtmlFormHandler::makeIdent()
name | the name of the form element | |
index | the elements index |
Definition at line 625 of file ulxr_htmlform_handler.cpp.
References ulxr::HtmlFormHandler::makeNumber().
bool ulxr::HtmlFormData::hasElement | ( | const CppString & | name | ) | const |
Determines if an element is available in the form.
name | the name of the form element |
Definition at line 631 of file ulxr_htmlform_handler.cpp.
bool ulxr::HtmlFormData::hasElement | ( | const CppString & | name, | |
unsigned | index | |||
) | const |
Determines if an element is available in the form.
Intended for numbered elements with the pattern "name" "_" [number] as created by HtmlFormHandler::makeIdent()
name | the name of the form element | |
index | the elements index |
Definition at line 637 of file ulxr_htmlform_handler.cpp.
References ulxr::HtmlFormHandler::makeNumber().
unsigned ulxr::HtmlFormData::size | ( | ) | const |
Gets the number of available elements.
Definition at line 603 of file ulxr_htmlform_handler.cpp.
Elements ulxr::HtmlFormData::elements [private] |
Definition at line 94 of file ulxr_htmlform_handler.h.