FileIndexer Class Reference

#include <index_utils.h>

Collaboration diagram for FileIndexer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileIndexer (const std::string &datadir_, const std::vector< std::string > &files)
 operator bool ()
Xapian::Document next ()

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 31 of file index_utils.h.


Constructor & Destructor Documentation

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

Definition at line 39 of file index_utils.h.

References next_file().


Member Function Documentation

void FileIndexer::next_file (  )  [private]

Definition at line 155 of file index_utils.cc.

References datadir, end, endswith(), and file.

Referenced by FileIndexer(), and next().

FileIndexer::operator bool (  )  [inline]

Definition at line 46 of file index_utils.h.

References end, and file.

Xapian::Document FileIndexer::next (  ) 

Definition at line 49 of file index_utils.cc.

References Xapian::Document::add_posting(), Xapian::Document::add_value(), C_isnotspace(), C_isspace(), get_paragraph(), munge_term(), next_file(), Xapian::Document::set_data(), and stemmer.


Member Data Documentation

std::string FileIndexer::datadir [private]

Definition at line 32 of file index_utils.h.

Referenced by next_file().

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

Definition at line 33 of file index_utils.h.

Referenced by next_file(), and operator bool().

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

Definition at line 33 of file index_utils.h.

Referenced by next_file(), and operator bool().

std::ifstream FileIndexer::input [private]

Definition at line 34 of file index_utils.h.


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.