21 #include <utility/vector1.hh>
42 namespace constraints {
84 ConstraintCreatorMap::const_iterator iter =
cst_types_.find( type_name );
86 return iter->second->create_constraint();
91 string msg(
"ConstraintFactory::newConstraint: ");
92 msg += type_name +
" does not name a known ConstraintType --> " +
93 "check spelling or register new Constraint type in ConstraintFactory!";
95 msg +=
"known types are:\n";
101 utility_exit_with_message( msg );
112 for ( ConstraintCreatorMap::const_iterator
114 cst_names.push_back( it->first );
128 ConstraintCreatorMap::const_iterator iter =
cst_types_.find( type_name );
135 string msg(
"ConstraintFactory::get_creator: ");
136 msg += type_name +
" does not name a known ConstraintType --> " +
137 "check spelling or register new Constraint type in ConstraintFactory!";
139 msg +=
"known types are:\n";
145 utility_exit_with_message( msg );