Append the supplied chain assumed to be HTML output, with the value found in the variable of the supplied name
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzHttpEvent::GetVar | (hzChain&,hzString&,) |
Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp
Function Logic:
Function body:
hzEcode hzHttpEvent::GetVar (hzChain& Z)hzString& name,
{
// Append the supplied chain assumed to be HTML output, with the value found in the variable of the supplied name
//
// Arguments: 1) Z The chain to be aggregated with the variable's value
// 2) name Of the variable to evaluate
//
// Returns: E_ARGUMENT If a variable name is not supplied
// E_NOTFOUND If the named varaible is not found in the event handler's maps
// E_OK If the named variable is appended to the HTML output
_hzfunc("hzHttpEvent::GetVar") ;
if (!name)
return E_ARGUMENT ;
if (m_mapStrings.Exists(name)) { Z << m_mapStrings[name] ; return E_OK ; }
if (m_mapChains.Exists(name)) { Z << m_mapChains[name] ; return E_OK ; }
return E_NOTFOUND ;
}