highlighter application  1.1
HCE project utils : highlighter
 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 
28 {
29  protected:
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;
36 };
37 
38 #endif