lucene::index::IndexWriter* getIndexWriter() { if ( !indexWriter ) { try { closeReader(); indexWriter = _CLNEW lucene::index::IndexWriter( indexDir, analyzer, !indexPresent(), false ); } catch( CLuceneError& err ) { qDebug() << "(Soprano::Index::CLuceneIndex) could not create index writer " << err.what(); throw err; } } return indexWriter; }
void VideoGrabber::closeDevices() { closePlayer(); closeReader(); }