Sets the application name and base directories for the Dissemino application. These are as per the following arguments:-
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdsApp::SetCookieName | (hzString&,) |
Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp
Function Logic:
Function body:
hzEcode hdsApp::SetCookieName (hzString& cookieBase)
{
// Category: Dissemino System Initialization
//
// Sets the application name and base directories for the Dissemino application. These are as per the following arguments:-
//
// Arguments: 1) appname The application name. This must be unique as seen by the delta server
// 2) baseDir The base directory. From this a number of directories including the document root, will be set
//
// Returns: E_SETONCE If this function has already been called
// E_ARGUMENT If any of the arguments are NULL
// E_NOTFOUND If the base directory does not exist
// E_OK If success
_hzfunc("hdsSphere::SetCookieName") ;
if (!cookieBase) return E_ARGUMENT ;
if (m_CookieName) return E_SETONCE ;
hzChain Z ; // For building cookie name
const char* i ; // Iterator
Z << "_hz_" ;
for (i = *cookieBase ; *i ; i++)
{
if (*i > CHAR_SPACE)
Z.AddByte(*i) ;
}
m_CookieName = Z ;
Z.Clear() ;
return E_OK ;
}