///======================================== Database Variables =========================================================================// int DLLEXPORT TECOM_DB_Variables_GetIntegerValue( int handle , int vartype , char *name , int *piIntegerValue , int hEquipmentHandle ) { STD_ERROR StdError = {0}; tsLocalStorage *pLocalStorage = NULL; IF (( handle == 0 ) , "The Module is not initialized yet. Please run ( TECOM_Init ) Function before that." ); IF (( name == NULL ) , "The function ( TECOM_DB_Variables_GetIntegerValue ) has recieved NULL argument of variable name." ); IF (( piIntegerValue == NULL ) , "The function ( TECOM_DB_Variables_GetIntegerValue ) has recieved NULL argument of variable value pointer." ); CHK_CMT( CmtGetTSVPtr ( handle , &pLocalStorage )); *piIntegerValue = GetVarInt( pLocalStorage->pClb , vartype, name , hEquipmentHandle ); Error: if ( handle ) { if ( IS_NOT_OK ) { FREE_STDERR_POINTER(pLocalStorage->pLastError); GET_STDERR_CLEAR(pLocalStorage->pLastError); } CmtReleaseTSVPtr (handle); } return StdError.error; }
uint32 DB2FileLoaderRegularImpl::Record::getUInt(uint32 field, uint32 arrayIndex, bool isSigned) const { ASSERT(field < file._header->FieldCount); return GetVarInt(field, arrayIndex, isSigned); }