Return TypeFunction nameArguments
hzEcodehdbADP::InitStandard(const hzString&,)

Declared in file: hzDatabase.h
Defined in file : hdbClass.cpp

Function Logic:

0:START 1:!this 2:Fatal 3:m_appName 4:Fatal 5:!appName 6:Return hzerr(E_ARGUMENT,No application name supplied) 7:m_appName ct datatype_DIGEST hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_DOUBLE hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_INT64 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_INT32 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_INT16 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_BYTE hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_UINT64 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_UINT32 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_UINT16 hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_UBYTE hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ct datatype_BOOL hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_DOMAIN hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_EMADDR hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_URL hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_IPADDR hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_TIME hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_SDATE hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_XDATE hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_STRING hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_TEXT hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_BINARY hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert ht datatype_TXTDOC hdbDatatype::SetTypename hdbDatatype::SetBasetype hdbDatatype::strType hzMapS::Insert 8:Return E_OK

Function body:

hzEcode hdbADP::InitStandard (const hzString& appName)
{
   _hzfunc("hdbADP::InitStandard") ;
   hdbCpptype*     ct ;
   hdbHzotype*     ht ;
   if (!this)
       Fatal("No ADP Instance") ;
   if (m_appName)
       Fatal("This function has already been called setting app name to ") ;
   if (!appName)
       return hzerr(E_ARGUMENT, "No application name supplied") ;
   m_appName = appName ;
   datatype_DIGEST = ct = new hdbCpptype() ;   ct->SetTypename("hashMD5"); ct->SetBasetype(BASETYPE_DIGEST);   m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_DOUBLE = ct = new hdbCpptype() ;   ct->SetTypename("double");  ct->SetBasetype(BASETYPE_DOUBLE);   m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_INT64  = ct = new hdbCpptype() ;   ct->SetTypename("int64");   ct->SetBasetype(BASETYPE_INT64);    m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_INT32  = ct = new hdbCpptype() ;   ct->SetTypename("int32");   ct->SetBasetype(BASETYPE_INT32);    m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_INT16  = ct = new hdbCpptype() ;   ct->SetTypename("int16");   ct->SetBasetype(BASETYPE_INT16);    m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_BYTE   = ct = new hdbCpptype() ;   ct->SetTypename("byte");    ct->SetBasetype(BASETYPE_BYTE);     m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_UINT64 = ct = new hdbCpptype() ;   ct->SetTypename("uint64");  ct->SetBasetype(BASETYPE_UINT64);   m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_UINT32 = ct = new hdbCpptype() ;   ct->SetTypename("uint32");  ct->SetBasetype(BASETYPE_UINT32);   m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_UINT16 = ct = new hdbCpptype() ;   ct->SetTypename("uint16");  ct->SetBasetype(BASETYPE_UINT16);   m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_UBYTE  = ct = new hdbCpptype() ;   ct->SetTypename("ubyte");   ct->SetBasetype(BASETYPE_UBYTE);    m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_BOOL   = ct = new hdbCpptype() ;   ct->SetTypename("bool");    ct->SetBasetype(BASETYPE_BOOL);     m_mapDatatypes.Insert(ct->strType(), ct);
   datatype_DOMAIN = ht = new hdbHzotype() ;   ht->SetTypename("domain");  ht->SetBasetype(BASETYPE_DOMAIN);   m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_EMADDR = ht = new hdbHzotype() ;   ht->SetTypename("emaddr");  ht->SetBasetype(BASETYPE_EMADDR);   m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_URL    = ht = new hdbHzotype() ;   ht->SetTypename("url");     ht->SetBasetype(BASETYPE_URL);      m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_IPADDR = ht = new hdbHzotype() ;   ht->SetTypename("ipaddr");  ht->SetBasetype(BASETYPE_IPADDR);   m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_TIME   = ht = new hdbHzotype() ;   ht->SetTypename("time");    ht->SetBasetype(BASETYPE_TIME);     m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_SDATE  = ht = new hdbHzotype() ;   ht->SetTypename("sdate");   ht->SetBasetype(BASETYPE_SDATE);    m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_XDATE  = ht = new hdbHzotype() ;   ht->SetTypename("xdate");   ht->SetBasetype(BASETYPE_XDATE);    m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_STRING = ht = new hdbHzotype() ;   ht->SetTypename("string");  ht->SetBasetype(BASETYPE_STRING);   m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_TEXT   = ht = new hdbHzotype() ;   ht->SetTypename("text");    ht->SetBasetype(BASETYPE_TEXT);     m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_BINARY = ht = new hdbHzotype() ;   ht->SetTypename("binary");  ht->SetBasetype(BASETYPE_BINARY);   m_mapDatatypes.Insert(ht->strType(), ht);
   datatype_TXTDOC = ht = new hdbHzotype() ;   ht->SetTypename("txtdoc");  ht->SetBasetype(BASETYPE_TXTDOC);   m_mapDatatypes.Insert(ht->strType(), ht);
   return E_OK ;
}