Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< DataPool > DataPool::create ( void   )  [static]

Default creator. Will prepare DataPool# for accepting data added through functions {add_data}(). Use {connect}() functions if you want to map this DataPool# to another or to a file.

Definition at line 746 of file DataPool.cpp.

References add_trigger(), and init().

Referenced by DjVuDocument::create(), DjVuDocEditor::create_shared_anno_file(), DjVuImage::decode(), DjVuDocEditor::generate_thumbnails(), DjVuFile::get_djvu_data(), DjVuDocument::get_thumbnail(), DjVuFile::init(), DjVuDocEditor::init(), DjVuFile::insert_file(), DjVmDoc::insert_file(), DjVuDocEditor::insert_group(), DjVmDoc::read(), DjVuFile::remove_anno(), DjVuFile::remove_meta(), DjVuFile::remove_text(), DjVuSimplePort::request_data(), DjVuErrorList::request_data(), DjVuDocument::request_data(), DjVuDocEditor::save_as(), DjVuErrorList::set_stream(), DjVuFile::start_decode(), DjVuFile::unlink_file(), and DjVmDoc::write().

{
  DEBUG_MSG("DataPool::DataPool()\n");
  DEBUG_MAKE_INDENT(3);
  DataPool *pool=new DataPool();

  GP<DataPool> retval=pool;
  pool->init();

      // If we maintain the data ourselves, we want to interpret its
      // IFF structure to predict its length
  pool->add_trigger(0, 32, static_trigger_cb, pool);
  return retval;
}


Generated by  Doxygen 1.6.0   Back to index