15 #ifndef ID_DATA_STRUCT_HPP
16 #define ID_DATA_STRUCT_HPP
22 enum class SearchType : std::uint8_t {ST_SINGLE = 0, ST_STRICKT = 1, ST_NO_STRICKT = 2};
42 std::vector<std::vector<std::pair<SearchType, std::string> > > searchStrings;
43 std::vector<std::string> contents;
44 std::vector<std::string> wcaches;
45 std::vector<InternalInDataParams> paramsList;
49 void setSearchStrings(std::vector<std::vector<std::pair<SearchType, std::string> > > &_searchStrings)
51 searchStrings = _searchStrings;
55 contents.push_back(content);
59 contents.push_back(content);
63 wcaches.push_back(wcache);
67 wcaches.push_back(wcache);
71 paramsList.push_back(params);
75 sendCacheBack = _sendCacheBack;
84 if(contents.size() <= i)
86 throw std::runtime_error(
">>> Index out of range");
92 if(wcaches.size() <= i)
94 throw std::runtime_error(
">>> Index out of range");
100 if(paramsList.size() <= i)
102 throw std::runtime_error(
">>> Index out of range");
104 return paramsList[i];
108 return contents.size();
112 return paramsList.size();
116 return wcaches.size();
120 return sendCacheBack;