EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | Static Public Member Functions | List of all members
CGIDemangler Class Reference

De-mangle CGI-type input. More...

#include <CGIDemangler.h>

Public Member Functions

void parse (const char *input)
 Demangle string input Creates an internal copy of the text for processing. More...
 
void add (const stdString &name, const stdString &value)
 Manually add another name/value to map.
 
stdString find (const stdString &name) const
 Query map.
 
const stdMap< stdString,
stdString > & 
getVars () const
 Retrieve full map.
 

Static Public Member Functions

static void unescape (char *text)
 Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent. More...
 
static void unescape (stdString &text)
 Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent. More...
 

Detailed Description

De-mangle CGI-type input.

For example, the QUERY string for CGI scripts or the GET/POST text that a web server receives.

All variables (name/value pairs) are placed in a std::map.

For a class that actually reads cin or QUERY_STRING, see CGIInput.

Member Function Documentation

void CGIDemangler::parse ( const char *  input)

Demangle string input Creates an internal copy of the text for processing.

Exceptions
GenericExceptionwhen the copy fails.
static void CGIDemangler::unescape ( char *  text)
static

Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent.

Changes the text! The resulting text may be shorter than the original.

static void CGIDemangler::unescape ( stdString &  text)
static

Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent.

Creates an internal copy of the text for processing.

Exceptions
GenericExceptionwhen the copy fails.

The documentation for this class was generated from the following file: