comparison OrthancFramework/Sources/Toolbox.h @ 4938:f630796a59b1 more-tags

ExpandResource now able to return computed tags (like ModalitiesInStudies)
author Alain Mazy <am@osimis.io>
date Mon, 14 Mar 2022 16:44:00 +0100
parents 8422e4f99a18
children 96a3e81eba90
comparison
equal deleted inserted replaced
4937:3f9b9865c8cc 4938:f630796a59b1
183 183
184 static void TokenizeString(std::vector<std::string>& result, 184 static void TokenizeString(std::vector<std::string>& result,
185 const std::string& source, 185 const std::string& source,
186 char separator); 186 char separator);
187 187
188 static void JoinStrings(std::string& result,
189 std::set<std::string>& source,
190 const char* separator);
191
192 static void JoinStrings(std::string& result,
193 std::vector<std::string>& source,
194 const char* separator);
195
188 // returns true if all element of 'needles' are found in 'haystack' 196 // returns true if all element of 'needles' are found in 'haystack'
189 template <typename T> static bool IsSetInSet(const std::set<T>& needles, const std::set<T>& haystack) 197 template <typename T> static bool IsSetInSet(const std::set<T>& needles, const std::set<T>& haystack)
190 { 198 {
191 for (typename std::set<T>::const_iterator it = needles.begin(); 199 for (typename std::set<T>::const_iterator it = needles.begin();
192 it != needles.end(); it++) 200 it != needles.end(); it++)