Changeset 768
- Timestamp:
- 01/12/10 17:25:16 (15 years ago)
- Location:
- library/bdm/base
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r766 r768 391 391 tms = zeros_i ( A.length() ); 392 392 393 // TODO tady se bude plnit primo do jeho promennych, a pak se zavola validacnni metoda, takze cele prepsat, ano?394 393 init ( A, szs, tms ); 395 394 } -
library/bdm/base/bdmbase.h
r766 r768 581 581 582 582 void to_setting ( Setting &set ) const { 583 // TODO we do not want to store rvc.. 584 // therfore, pdf::to_setting( set ) is omitted 583 // we do not want to store rvc, therfore, pdf::to_setting( set ) is omitted 585 584 root::to_setting(set); 585 586 586 UI::save( &rv, set, "rv" ); 587 587 } … … 605 605 //! constructor 606 606 pdf_internal() : pdf(), iepdf() { 607 // set_ep ( iepdf ); TODO!608 607 } 609 608 … … 1124 1123 UI::save( &posterior()._rv(), set, "rv" ); 1125 1124 1126 /* TODO ROZBEHAT UI::save( &opt, set, "options" ); 1127 ... kod set_options vypada takto: 1128 if ( opt.find ( "logfull" ) != string::npos ) { 1129 const_cast<epdf&> ( posterior() ).set_log_level ( 10 ) ; 1130 } else { 1131 if ( opt.find ( "logbounds" ) != string::npos ) { 1132 const_cast<epdf&> ( posterior() ).set_log_level ( 2 ) ; 1133 } else { 1134 const_cast<epdf&> ( posterior() ).set_log_level ( 1 ) ; 1125 string opt; 1126 switch( posterior()._log_level() ) 1127 { 1128 case 2: 1129 opt = "logbounds "; 1130 break; 1131 case 10: 1132 opt = "logfull "; 1133 break; 1134 default: 1135 opt = ""; 1136 break; 1135 1137 } 1136 if ( opt.find ( "logll" ) != string::npos ) { 1137 log_level = 1; 1138 } 1139 } */ 1140 } 1141 1142 }; 1138 if( log_level == 1 ) opt = opt + "logll"; 1139 if( !opt.empty() ) 1140 UI::save( opt, set, "options" ); 1141 } 1142 }; 1143 1143 1144 //! array of pointers to epdf 1144 1145 typedef Array<shared_ptr<epdf> > epdf_array;