Changeset 737 for library/bdm/base/user_info.cpp
- Timestamp:
- 11/25/09 12:14:38 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/user_info.cpp
r735 r737 15 15 namespace bdm { 16 16 17 string UIException::format_message ( const string &reason, const string &path ) {17 string UIException::format_message ( const string &reason, const string &path ) { 18 18 stringstream ss; 19 19 ss << reason; … … 78 78 void UI::MappedUI::add_class ( const string &class_name, const type_info * const class_type_info, const UI* const ui ) { 79 79 pair< StringToUIMap::iterator, bool> inres = 80 81 StringToUIMap::value_type( class_name, ui ) );80 mapped_strings().insert ( 81 StringToUIMap::value_type ( class_name, ui ) ); 82 82 if ( inres.second ) { 83 83 mapped_type_infos().insert ( 84 85 84 TypeInfoToStringMap::value_type ( 85 class_type_info, class_name ) ); 86 86 } 87 87 } … … 198 198 : element.add ( name, Setting::TypeList ); 199 199 200 Setting &tag= set.add ( Setting::TypeString );201 tag ="matrix";202 200 Setting &tag = set.add ( Setting::TypeString ); 201 tag = "matrix"; 202 203 203 Setting &cols = set.add ( Setting::TypeInt ); 204 204 cols = matrix.cols(); … … 310 310 from_setting ( matrix, link.result ); 311 311 312 if ( matrix.cols() != 1 && matrix.rows() != 1 && matrix.cols() !=0)312 if ( matrix.cols() != 1 && matrix.rows() != 1 && matrix.cols() != 0 ) 313 313 throw UISettingException ( "UIException: the vector length is invalid, it seems to be rather a matrix.", link.result ); 314 314