Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TaggedTextParser Class Reference

#include <TaggedTextParser.hpp>

Inheritance diagram for TaggedTextParser:

indri::Parser ObjectHandler< UnparsedDocument > HTMLParser List of all members.

Public Methods

 TaggedTextParser ()
 ~TaggedTextParser ()
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< std::string, std::string > &conflations)
ParsedDocumentparse (UnparsedDocument *document)
void handle (UnparsedDocument *document)
void setHandler (ObjectHandler< ParsedDocument > &h)

Protected Types

typedef HashTable< std::string,
std::string, StringHash,
StringComparator
StrHashTable

Protected Methods

virtual void handleToken (char *token, int type, long pos)
virtual void initialize (UnparsedDocument *unparsed, ParsedDocument *parsed)
virtual void cleanup (UnparsedDocument *unparsed, ParsedDocument *parsed)
void addTag (const char *s, const char *c, int pos)
void endTag (const char *s, const char *c, int pos)
void addMetadataTag (const char *s, const char *c, int pos)
void endMetadataTag (const char *s, const char *c, int pos)
void writeToken (char *token)
tag_properties_findTag (const char *name)
tag_properties_buildTag (const std::string &name, const std::map< std::string, std::string > &conflations)
void handleTag (char *token, long pos)

Protected Attributes

TagListtl
TagList_metaList
Buffer _termBuffer
HashTable< const char *, tag_properties * > _tagTable
const tag_properties_startExcludeRegion
const tag_properties_startIncludeRegion
bool _exclude
bool _include
bool _defaultInclude

Member Typedef Documentation

typedef HashTable<std::string, std::string, StringHash, StringComparator> TaggedTextParser::StrHashTable [protected]
 


Constructor & Destructor Documentation

TaggedTextParser::TaggedTextParser  
 

TaggedTextParser::~TaggedTextParser  
 


Member Function Documentation

TaggedTextParser::tag_properties * TaggedTextParser::_buildTag const std::string &    name,
const std::map< std::string, std::string > &    conflations
[protected]
 

TaggedTextParser::tag_properties * TaggedTextParser::_findTag const char *    name [protected]
 

void TaggedTextParser::addMetadataTag const char *    s,
const char *    c,
int    pos
[inline, protected]
 

void TaggedTextParser::addTag const char *    s,
const char *    c,
int    pos
[inline, protected]
 

void TaggedTextParser::cleanup UnparsedDocument   unparsed,
ParsedDocument   parsed
[protected, virtual]
 

Reimplemented in HTMLParser.

void TaggedTextParser::endMetadataTag const char *    s,
const char *    c,
int    pos
[inline, protected]
 

void TaggedTextParser::endTag const char *    s,
const char *    c,
int    pos
[inline, protected]
 

void TaggedTextParser::handle UnparsedDocument   document [virtual]
 

Implements indri::Parser.

void TaggedTextParser::handleTag char *    token,
long    pos
[protected]
 

void TaggedTextParser::handleToken char *    token,
int    type,
long    pos
[protected, virtual]
 

Reimplemented in HTMLParser.

void TaggedTextParser::initialize UnparsedDocument   unparsed,
ParsedDocument   parsed
[protected, virtual]
 

Reimplemented in HTMLParser.

ParsedDocument * TaggedTextParser::parse UnparsedDocument   document [virtual]
 

Implements indri::Parser.

void TaggedTextParser::setHandler ObjectHandler< ParsedDocument > &    h [virtual]
 

Implements indri::Parser.

void TaggedTextParser::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< std::string, std::string > &    conflations
[virtual]
 

Implements indri::Parser.

void TaggedTextParser::writeToken char *    token [protected]
 


Member Data Documentation

bool TaggedTextParser::_defaultInclude [protected]
 

bool TaggedTextParser::_exclude [protected]
 

bool TaggedTextParser::_include [protected]
 

TagList* TaggedTextParser::_metaList [protected]
 

const tag_properties* TaggedTextParser::_startExcludeRegion [protected]
 

const tag_properties* TaggedTextParser::_startIncludeRegion [protected]
 

HashTable<const char*, tag_properties*> TaggedTextParser::_tagTable [protected]
 

Buffer TaggedTextParser::_termBuffer [protected]
 

TagList* TaggedTextParser::tl [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:56 2004 for Lemur Toolkit by doxygen1.2.18