highlighter application
1.1
HCE project utils : highlighter
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
HighlightingAlgorithmSimple.hpp
Go to the documentation of this file.
1
14
#ifndef HIGHLIGHTING_ALGORITHM_SIMPLE_HPP
15
#define HIGHLIGHTING_ALGORITHM_SIMPLE_HPP
16
17
#include "
HighlightingAlgorithmBase.hpp
"
18
19
class
HighlightingAlgorithmSimple
:
public
HighlightingAlgorithmBase
20
{
21
private
:
22
unsigned
int
maxNumber;
23
std::string name;
24
public
:
25
HighlightingAlgorithmSimple
():maxNumber(0xFFFFFFFF), name(
"(A-Simple substring)"
) {}
26
virtual
void
process
(
const
std::vector<std::pair<SearchType, std::string> > &searchStrings,
const
Poco::SharedPtr<std::string> contentPtr,
27
ContentsStorageBase::WordPosPtrType
wordMapPtr, std::map<unsigned int, WordPos> &wordOffsetMap);
28
inline
void
setMaxNumber
(
unsigned
int
_maxNumber) {maxNumber = _maxNumber;}
29
virtual
std::string
getName
() {
return
name;}
30
virtual
~HighlightingAlgorithmSimple
() {}
31
};
32
33
#endif
sources
src
HighlightingAlgorithmSimple.hpp
Generated on Mon Jan 13 2014 16:16:16 for highlighter application by
1.8.1.2