Initialize a hzDocument with a URL

Return TypeFunction nameArguments
hzEcodehzDocument::Init(hzUrl&,)

Declared in file: hzDocument.h
Defined in file : hzDocHtml.cpp

Function Logic:

0:START 1:unknown 2:unknown 3:items 4:items 5:Return E_INITDUP 6:m_Info 7:Return E_OK

Function body:

hzEcode hzDocument::Init (hzUrl& url)
{
   //  Initialize a hzDocument with a URL
   //  
   //  Arguments: 1) url  The URL of the document
   //  
   //  Returns: E_INITDUP If the document is already associated with a URL
   //     E_OK  If the document URL is set
   _hzfunc("hzDocument::Init") ;
   if (*m_Info.m_urlReq)
   {
       if (m_Info.m_urlReq == url)
           hzerr(E_INITDUP, "Duplicate call. Address already set to %s\n", *m_Info.m_urlReq) ;
       else
           hzerr(E_INITDUP, "Duplicate call. Addr=%s, arg=%s\n", *m_Info.m_urlReq, *url) ;
       return E_INITDUP ;
   }
   m_Info.m_urlReq = url ;
   return E_OK ;
}