Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

GP< DataPool > DjVuSimplePort::request_data ( const DjVuPort source,
const GURL url 
) [virtual]

If url# is local, it created a {DataPool}, connects it to the file with the given name and returns. Otherwise returns #0#.

Reimplemented from DjVuPort.

Reimplemented in DjVuErrorList.

Definition at line 650 of file DjVuPort.cpp.

References DataPool::create(), and GURL::is_local_file_url().

{
  G_TRY {
    if (url.is_local_file_url())
    {
//      GUTF8String fname=GOS::url_to_filename(url);
//      if (GOS::basename(fname)=="-") fname="-";
      return DataPool::create(url);
    }
  } G_CATCH_ALL {} G_ENDCATCH;
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index