Changeset 364
- Timestamp:
- 06/08/09 18:00:49 (16 years ago)
- Location:
- bdm
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.h
r359 r364 194 194 // TODO dodelat void to_setting( Setting &root ) const; 195 195 }; 196 196 UIREGISTER(RV); 197 197 198 198 //! Concat two random variables -
bdm/user_info.cpp
r363 r364 28 28 UI_File::UI_File ( const string &file_name ) 29 29 { 30 setAutoConvert( true );31 30 try 32 31 { 33 32 readFile( file_name.c_str() ); 33 setAutoConvert( true ); 34 34 } 35 35 catch ( FileIOException f ) … … 385 385 ui_error("a vector element has to be a number", root[0]); 386 386 387 for ( int i=0; i < len; i++ ) 388 vector(i) = root[i]; 387 for ( int i=0; i < len; i++ ) { 388 double tmp= (root[i]); 389 vector(i) = tmp; 390 } 389 391 return; 390 392 } -
bdm/user_info.h
r363 r364 18 18 #ifndef BDMLIB 19 19 #define UIREGISTER(class_name) template<> const Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name) 20 #warning BDMLIB-defined 20 21 #else 21 22 #define UIREGISTER(class_name) 23 #warning BDMLIB-empty 22 24 #endif 23 25 … … 326 328 //! default constructor, which is intentionally declared as private 327 329 Particular_UI<T>( const string &class_name) : UI( class_name, &typeid(T) ) 328 { 330 { cout << class_name << endl; 329 331 }; 330 332