39 choice.
m_Key = choicekey;
40 choice.
m_Name = choiceName;
58 std::vector<std::string>
61 std::vector<std::string> ret;
66 ret.push_back(it->m_Key);
87 std::vector<std::string>
90 std::vector<std::string> ret;
95 ret.push_back(it->m_Name);
123 if ( it->m_Key == choiceKey )
131 itkExceptionMacro(<<
"Cannot find " << choiceKey);
151 std::vector<int> selectedItems;
157 for(; j<names.size(); j++)
159 if( names[j] == selectedName )
161 selectedItems.push_back(j);
166 if( j==names.size() )
168 std::ostringstream oss;
169 for( j=0; j<names.size(); j++)
172 if( j < names.size()-1 )
177 itkExceptionMacro(
"Value "<<selectedName<<
" not found in the choices possibilities"<<oss.str()<<
".");
187 std::vector<int> selectedItems;
193 std::ostringstream oss;
194 for(; j<keys.size(); j++)
196 if( keys[j] == selectedKey )
198 selectedItems.push_back(j);
205 for( j=0; j<keys.size(); j++)
208 if( j < keys.size()-1 )
213 itkExceptionMacro(
"Value "<<selectedKey<<
" not found in the choices possibilities"<<oss.str()<<
".");