highlighter application  1.1
HCE project utils : highlighter
 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 
18 
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;}
31 };
32 
33 #endif