xapian-core  1.4.27
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileIndexer Class Reference

#include <index_utils.h>

+ Collaboration diagram for FileIndexer:

Public Member Functions

 FileIndexer (const std::string &datadir_, const std::vector< std::string > &files)
 
void index_to (Xapian::WritableDatabase &db)
 

Private Member Functions

void next_file ()
 

Private Attributes

std::string datadir
 
std::vector< std::string >::const_iterator file
 
std::vector< std::string >::const_iterator end
 
std::ifstream input
 

Detailed Description

Definition at line 30 of file index_utils.h.

Constructor & Destructor Documentation

◆ FileIndexer()

FileIndexer::FileIndexer ( const std::string &  datadir_,
const std::vector< std::string > &  files 
)
inline

Definition at line 38 of file index_utils.h.

References index_to(), and next_file().

Member Function Documentation

◆ index_to()

void FileIndexer::index_to ( Xapian::WritableDatabase db)

◆ next_file()

void FileIndexer::next_file ( )
private

Definition at line 158 of file index_utils.cc.

References DIR_SEPS_LIST, and errno_to_string().

Referenced by FileIndexer().

Member Data Documentation

◆ datadir

std::string FileIndexer::datadir
private

Definition at line 31 of file index_utils.h.

◆ end

std::vector<std::string>::const_iterator FileIndexer::end
private

Definition at line 32 of file index_utils.h.

◆ file

std::vector<std::string>::const_iterator FileIndexer::file
private

Definition at line 32 of file index_utils.h.

◆ input

std::ifstream FileIndexer::input
private

Definition at line 33 of file index_utils.h.


The documentation for this class was generated from the following files: