if(templateProperties.count(criterion.first)==1)// e.g. is "Dimensionality" a template property? Or is NameOfClass queried?
{
if(criterion.second.size()!=1)// criteria can be of format: "keystring": ["value1", value2","value3"], but for templateproperties only 1 value is allowed.
{
std::stringstreammsg;
msg<<"The criterion "<<criterion.first<<" may have only 1 value";
throwstd::runtime_error(msg.str());
//itkExceptionMacro("The criterion " << criterion.first << " may have only 1 value");
if(templateProperties.count(criterion.first)==1)// e.g. is "Dimensionality" a template property? Or is NameOfClass queried?
{
if(criterion.second.size()!=1)// criteria can be of format: "keystring": ["value1", value2","value3"], but for templateproperties only 1 value is allowed.
{
std::stringstreammsg;
msg<<"The criterion "<<criterion.first<<" may have only 1 value";
throwstd::runtime_error(msg.str());
//itkExceptionMacro("The criterion " << criterion.first << " may have only 1 value");