HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
InDataRefine.hpp
Go to the documentation of this file.
1 #ifndef IN_DATA_REFINE_HPP
2 #define IN_DATA_REFINE_HPP
3 
4 #include <string>
5 
6 #include "HCEConstants.hpp"
7 #include "DataBase.hpp"
8 #include "ProcessInfo.hpp"
9 
10 
11 namespace HCE
12 {
13  class InDataRefine : public DataBase
14  {
15  protected:
17  u_int8_t normalizationId;
18  u_int8_t subjectMask;
19  std::string content;
20  std::vector<std::string> _delimiters;
21  std::vector<component::ProcessInfo> _processInfo;
22  protected:
23  void init() {};
24  public:
25  InDataRefine(ComponentType inType) :DataBase(inType) { init(); }
26  InDataRefine(ComponentType inType, u_int8_t normId, u_int8_t subMask, std::string cont ) :DataBase(inType), content(cont) { init(); }
27  virtual ~InDataRefine() {}
28  public:
29  void setGranularityLevel(const GRANULARITY_LEVEL granularityLevel) { _granularityLevel = granularityLevel; }
30  void setDelimiters(const std::vector<std::string>& delimiters) { _delimiters = delimiters; }
31  void setNormalizationId(const u_int8_t &_normalizationId) { normalizationId = _normalizationId; }
32  void setSubjectMask(const u_int8_t &_subjectMask) { subjectMask = _subjectMask; }
33  void setContent(const std::string &_content) { content = _content; }
34  void setProcessInfoTable( const std::vector<component::ProcessInfo>& processInfo ) { _processInfo = processInfo; }
35  public:
37  std::vector<std::string> getDelimiters() const { return _delimiters; }
38  u_int8_t getNormalizationId() { return normalizationId; }
39  u_int8_t getSubjectMask() { return subjectMask; }
40  const std::string& getContent() const { return content; }
41  std::vector<component::ProcessInfo>& getProcessInfoTable() { return _processInfo; }
42  };
43 }
44 
45 #endif