highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HighlightingAlgorithmSimple Class Reference

#include <HighlightingAlgorithmSimple.hpp>

Inheritance diagram for HighlightingAlgorithmSimple:
Collaboration diagram for HighlightingAlgorithmSimple:

Public Member Functions

 HighlightingAlgorithmSimple ()
virtual void process (const std::vector< std::pair< SearchType, std::string > > &searchStrings, const Poco::SharedPtr< std::string > contentPtr, ContentsStorageBase::WordPosPtrType wordMapPtr, std::map< unsigned int, WordPos > &wordOffsetMap)
void setMaxNumber (unsigned int _maxNumber)
virtual std::string getName ()
virtual ~HighlightingAlgorithmSimple ()
- Public Member Functions inherited from HighlightingAlgorithmBase
virtual ~HighlightingAlgorithmBase ()

Additional Inherited Members

- Protected Member Functions inherited from HighlightingAlgorithmBase
 HighlightingAlgorithmBase ()

Detailed Description

Definition at line 19 of file HighlightingAlgorithmSimple.hpp.

Constructor & Destructor Documentation

HighlightingAlgorithmSimple::HighlightingAlgorithmSimple ( )
inline

Definition at line 25 of file HighlightingAlgorithmSimple.hpp.

virtual HighlightingAlgorithmSimple::~HighlightingAlgorithmSimple ( )
inlinevirtual

Definition at line 30 of file HighlightingAlgorithmSimple.hpp.

Member Function Documentation

virtual std::string HighlightingAlgorithmSimple::getName ( )
inlinevirtual

Implements HighlightingAlgorithmBase.

Definition at line 29 of file HighlightingAlgorithmSimple.hpp.

void HighlightingAlgorithmSimple::process ( const std::vector< std::pair< SearchType, std::string > > &  searchStrings,
const Poco::SharedPtr< std::string >  contentPtr,
ContentsStorageBase::WordPosPtrType  wordMapPtr,
std::map< unsigned int, WordPos > &  wordOffsetMap 
)
virtual

Method for simple substring search, that method(function) have called if main algorithm doesn't return any results.

Implements HighlightingAlgorithmBase.

Definition at line 20 of file HighlightingAlgorithmSimple.cpp.

void HighlightingAlgorithmSimple::setMaxNumber ( unsigned int  _maxNumber)
inline

Definition at line 28 of file HighlightingAlgorithmSimple.hpp.


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