- Timestamp:
- 05/11/10 16:25:24 (15 years ago)
- Location:
- library/bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/loggers.h
r907 r933 56 56 if ( id >= 0 ) { 57 57 vectors ( id ).set_row ( ind, v ); 58 } 59 } 60 void log_double ( int id, const double &d ) { 61 bdm_assert ( id < vectors.length(), "Logger was not initialized, run init()." ); 62 if ( id >= 0 ) { 63 vectors ( id )( ind, 0 )=d; 58 64 } 59 65 } -
library/bdm/mex/mex_parser.h
r925 r933 91 91 Setting &child = setting.add ( key, Setting::TypeString ); 92 92 child = mxArray2string ( value ); 93 }93 } else { 94 94 if ( mxIsLogical ( value ) ) { 95 95 Setting &child = setting.add ( key, Setting::TypeBoolean ); 96 96 child = ( bool ) mxArray2bin ( value ); 97 } 97 } else { 98 98 if ( mxIsStruct ( value ) ) { 99 99 Setting &child = setting.add ( key, Setting::TypeGroup ); 100 100 fillGroup ( child, value ); 101 } 101 } else { 102 102 if ( mxIsCell ( value ) ) { 103 103 Setting &child = setting.add ( key, Setting::TypeList ); 104 104 fillList ( child, value ); 105 } 105 } else { 106 106 if ( mxIsNumeric ( value ) ) { 107 107 storeNumeric ( setting, value, ( string ) key ); 108 } 109 if (mxIsObject(value)){ 108 } else { 109 // it is neither of above - treat it as an address 110 // if (mxIsObject(value)){ <== should be tested but it is broken in matlab... 111 110 112 Setting &child = setting.add(key, Setting::TypeInt64); 111 113 child = (long)value; 112 114 } 115 } 116 } 117 } 118 } 113 119 } 114 120 }