Logo Search packages:      
Sourcecode: xchm version File versions

bool CHMFile::ResolveObject ( const wxString &  fileName,
chmUnitInfo *  ui 
)

Looks up fileName in the archive.

Parameters:
fileName The file name to look up in the archive, qualified with '/' standing for the root of the archive filesystem.
ui A pointer to CHMLIB specific data about the file. The parameter gets filled with useful data if the lookup was succesful.
Returns:
true if the file exists in the archive, false otherwise.

Definition at line 435 of file chmfile.cpp.

Referenced by CHMInputStream::CHMInputStream(), GetIndex(), and GetTopicsTree().

{
      return _chmFile != NULL && 
            ::chm_resolve_object(_chmFile, 
                             static_cast<const char *>(
                                   fileName.mb_str()), 
                             ui)
            == CHM_RESOLVE_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index