Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

SAPDB_Bool Studio_DBFSObject::getDirEntry ( SAPDB_Int2  lfno,
Tools_DynamicUTF8String sOut 
)

------------------------------------------------------------------------- function: getDirEntry description: get conent of directory arguments: [in] lfno, file number [out] sOut, content of directory or error text, if one occured

return value: true if success

--------------------------------------------------------------------------

Definition at line 352 of file Studio_DBFSObject.cpp.

References Tools_DynamicUTF8String::Erase().

Referenced by StudioWeb_StoredQueryTree::readFirstLevelTree(), and StudioWeb_StoredQueryTree::readSubDir().

{

      SAPDB_UTF8 sBuffer[1024];
      memset(sBuffer,0,1024);

      SAPDB_Bool bRet = SAPDB_TRUE;
      sOut.Erase();

    //get directory entries
      SAPDB_Int4 lRet = wd101GetDirEntry(m_pDBFS, lfno,(char*)sBuffer,sizeof(sBuffer), 0);
    if (lRet == -1) {    
         
             sapdbwa_ErrP pError = wd101GetErr(m_pDBFS);
             if (sapdbwa_GetErrId(pError) != sapdbwa_Error_NoError &&
                  (sapdbwa_GetErrId(pError) != sapdbwa_Error_NoMoreEntries)){

                  sapdbwa_CopyErrMsg(pError,(char*)sBuffer,sizeof (sBuffer));                               
             }           
             bRet =  SAPDB_FALSE;
      }

      sOut = Tools_DynamicUTF8String((SAPDB_UTF8*)sBuffer); 
      return bRet;
}


Generated by  Doxygen 1.6.0   Back to index