Return Type | Function name | Arguments |
---|---|---|
hzEcode | hdbADP::InitStandard | (const hzString&,) |
Declared in file: hzDatabase.h
Defined in file : hdbClass.cpp
Function Logic:
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 ; }