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
HighlightingAlgorithmBase.hpp
Go to the documentation of this file.
1
14
#ifndef HIGHLIGHTING_ALGORITHM_BASE_HPP
15
#define HIGHLIGHTING_ALGORITHM_BASE_HPP
16
17
#include <map>
18
#include <Poco/SharedPtr.h>
19
#include <string>
20
#include <vector>
21
22
#include "
ContentsStorageBase.hpp
"
23
#include "
InDataStruct.hpp
"
24
#include "
WordPos.hpp
"
25
26
27
class
HighlightingAlgorithmBase
28
{
29
protected
:
30
HighlightingAlgorithmBase
() {}
31
public
:
32
virtual
void
process
(
const
std::vector<std::pair<SearchType, std::string> > &searchStrings,
const
Poco::SharedPtr<std::string> contentPtr,
33
ContentsStorageBase::WordPosPtrType
wordMapPtr, std::map<unsigned int, WordPos> &wordOffsetMap) = 0;
34
virtual
std::string
getName
() = 0;
35
virtual
~HighlightingAlgorithmBase
() {}
36
};
37
38
#endif
sources
src
HighlightingAlgorithmBase.hpp
Generated on Mon Jan 13 2014 16:16:16 for highlighter application by
1.8.1.2