highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
InDataHighlight.hpp
Go to the documentation of this file.
1 
14 #ifndef IN_DATA_HIGHLIGHT_HPP
15 #define IN_DATA_HIGHLIGHT_HPP
16 
17 #include <string>
18 
19 #include <Poco/SharedPtr.h>
20 
21 #include "HCEConstants.hpp"
22 #include "DataBase.hpp"
23 #include "ContentsStorageBase.hpp"
24 #include "CrossThreadBuf.hpp"
25 #include "InDataStruct.hpp"
26 
27 namespace HCE
28 {
29  class InDataHighlight: public DataBase
30  {
31  private:
32  Poco::SharedPtr<CrossThreadBuf> crossThreadBufPtr;
33  Poco::SharedPtr<InDataStruct> inDataStructPtr;
34  Poco::SharedPtr<ContentsStorageBase> contentsStorageBasePtr;
35  public:
36  InDataHighlight(ComponentType inType) : DataBase(inType), crossThreadBufPtr(nullptr), inDataStructPtr(nullptr), contentsStorageBasePtr(nullptr) {}
37  void setCrossThreadBufPtr(Poco::SharedPtr<CrossThreadBuf> _crossThreadBufPtr) {crossThreadBufPtr = _crossThreadBufPtr;}
38  Poco::SharedPtr<CrossThreadBuf> getCrossThreadBufPtr() {return crossThreadBufPtr;}
39  void setInDataStructPtr(Poco::SharedPtr<InDataStruct> _inDataStructPtr) {inDataStructPtr = _inDataStructPtr;}
40  Poco::SharedPtr<InDataStruct> getInDataStructPtr() {return inDataStructPtr;}
41  void setContentsStorageBasePtr(Poco::SharedPtr<ContentsStorageBase> _contentsStorageBasePtr) {contentsStorageBasePtr = _contentsStorageBasePtr;}
42  Poco::SharedPtr<ContentsStorageBase> getContentsStorageBasePtr() {return contentsStorageBasePtr;}
43  virtual ~InDataHighlight() {crossThreadBufPtr = nullptr;}
44  };
45 }
46 
47 #endif