Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::parse::TextParser Class Reference

#include <TextParser.hpp>

Inheritance diagram for indri::parse::TextParser:

indri::parse::Parser indri::parse::ObjectHandler< TokenizedDocument > List of all members.

Public Member Functions

 TextParser ()
 ~TextParser ()
indri::api::ParsedDocumentparse (TokenizedDocument *document)
void handle (TokenizedDocument *document)
void setHandler (ObjectHandler< indri::api::ParsedDocument > &h)
void setTags (const std::vector< std::string > &include, const std::vector< std::string > &exclude, const std::vector< std::string > &index, const std::vector< std::string > &metadata, const std::map< ConflationPattern *, std::string > &conflations)

Protected Member Functions

void writeToken (char *token)
void writeToken (char *token, int start, int end)

Protected Attributes

indri::utility::Buffer _termBuffer

Private Attributes

ObjectHandler< indri::api::ParsedDocument > * _handler
indri::api::ParsedDocument _document

Constructor & Destructor Documentation

indri::parse::TextParser::TextParser  ) 
 

indri::parse::TextParser::~TextParser  ) 
 


Member Function Documentation

void indri::parse::TextParser::handle TokenizedDocument document  )  [virtual]
 

Implements indri::parse::Parser.

indri::api::ParsedDocument* indri::parse::TextParser::parse TokenizedDocument document  )  [virtual]
 

Implements indri::parse::Parser.

void indri::parse::TextParser::setHandler ObjectHandler< indri::api::ParsedDocument > &  h  )  [virtual]
 

Implements indri::parse::Parser.

void indri::parse::TextParser::setTags const std::vector< std::string > &  include,
const std::vector< std::string > &  exclude,
const std::vector< std::string > &  index,
const std::vector< std::string > &  metadata,
const std::map< ConflationPattern *, std::string > &  conflations
[virtual]
 

Implements indri::parse::Parser.

void indri::parse::TextParser::writeToken char *  token,
int  start,
int  end
[protected]
 

void indri::parse::TextParser::writeToken char *  token  )  [protected]
 


Member Data Documentation

indri::api::ParsedDocument indri::parse::TextParser::_document [private]
 

ObjectHandler<indri::api::ParsedDocument>* indri::parse::TextParser::_handler [private]
 

indri::utility::Buffer indri::parse::TextParser::_termBuffer [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:03 2010 for Lemur by doxygen 1.3.4