comparison OrthancServer/Search/ListConstraint.cpp @ 1795:af6840eb23ee worklists

HierarchicalMatcher
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Nov 2015 17:41:22 +0100
parents 03b030680e3d
children b1291df2f780
comparison
equal deleted inserted replaced
1794:bdfae6e17d23 1795:af6840eb23ee
73 Toolbox::ToUpperCase(v); 73 Toolbox::ToUpperCase(v);
74 } 74 }
75 75
76 return allowedValues_.find(v) != allowedValues_.end(); 76 return allowedValues_.find(v) != allowedValues_.end();
77 } 77 }
78
79
80 std::string ListConstraint::Format() const
81 {
82 std::string s;
83
84 for (std::set<std::string>::const_iterator
85 it = allowedValues_.begin(); it != allowedValues_.end(); ++it)
86 {
87 if (!s.empty())
88 {
89 s += "\\";
90 }
91
92 s += *it;
93 }
94
95 return s;
96 }
78 } 97 }