highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HighlightStringStickerSimple.hpp
Go to the documentation of this file.
1 
13 #ifndef HIGHLIGHT_STRING_STICKER_SIMPLE_HPP
14 #define HIGHLIGHT_STRING_STICKER_SIMPLE_HPP
15 
16 #include "InDataStruct.hpp"
18 
20 {
21  protected:
22  std::string hlBegin;
23  std::string hlEnd;
24  unsigned int maxNumber;
25  unsigned int highlightedCounter;
26  public:
28  virtual std::string fillOutPutStr(std::vector<WordPos> &wordOffsets, const std::string &incomeContent);
29  virtual void reinitialize(Poco::SharedPtr<InDataStruct> inDataStructPtr);
30  inline void setHlBegin(const std::string &_hlBegin);
31  inline void setHlEnd(const std::string &_hlEnd);
32  inline void setMaxNumber(unsigned int _maxNumber);
33  virtual void setHighlightedCounter(unsigned int _highlightedCounter);
34  virtual unsigned int getHighlightedCounter();
36 };
37 
38 void HighlightStringStickerSimple::setHlBegin(const std::string &_hlBegin)
39 {
40  hlBegin = _hlBegin;
41 }
42 
43 void HighlightStringStickerSimple::setHlEnd(const std::string &_hlEnd)
44 {
45  hlEnd = _hlEnd;
46 }
47 
48 void HighlightStringStickerSimple::setMaxNumber(unsigned int _maxNumber)
49 {
50  maxNumber = _maxNumber;
51 }
52 
53 #endif