Sets the application name, the domain and base directories for the Dissemino application. These are as per the following arguments:-
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdsApp::InitApp | (hzDomain&,hzString&,hzString&,) |
Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp
Function Logic:
Function body:
hzEcode hdsApp::InitApp (hzDomain& domain)hzString& baseDir, hzString& rootFile,
{
// Category: Dissemino System Initialization
//
// Sets the application name, the domain 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) domain The domain name the application will act as part or whole website for
// 3) 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_FORMAT If the domain name is not a valid domain
// E_NOTFOUND If the base directory does not exist
// E_OK If success
_hzfunc("hdsApp::Init") ;
if (m_Domain)
return E_SETONCE ;
if (!domain || !baseDir || !rootFile)
return E_ARGUMENT ;
m_Appname = domain ;
m_Domain = domain ;
m_BaseDir = baseDir ;
m_RootFile = rootFile ;
return E_OK ;
}