| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzHttpEvent::SetVarChain | (const hzString&,const hzChain&,) |
Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp
Function Logic:
Function body:
hzEcode hzHttpEvent::SetVarChain (const hzString& name, const hzChain& Z)
{
_hzfunc("hzHttpEvent::SetVar(chain)") ;
if (!name)
return hzerr(E_ARGUMENT, "Blank variable names are not allowed") ;
if (m_mapChains.Exists(name))
{
m_mapChains[name].Clear() ;
m_mapChains[name] = Z ;
}
else
{
if (m_mapStrings.Exists(name))
return hzerr(E_DUPLICATE, "Cannot assign value to an existing string") ;
if (m_mapChains.Insert(name, Z) != E_OK)
return hzerr(E_MEMORY, "Could not insert variable %s", *name) ;
}
return E_OK ;
}