Show
Ignore:
Timestamp:
05/11/10 16:25:24 (14 years ago)
Author:
smidl
Message:

bdmtoolbox updated for new loggers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/mex/mex_parser.h

    r925 r933  
    9191                                Setting &child = setting.add ( key, Setting::TypeString ); 
    9292                                child = mxArray2string ( value ); 
    93                         } 
     93                                } else { 
    9494                        if ( mxIsLogical ( value ) ) { 
    9595                                Setting &child = setting.add ( key, Setting::TypeBoolean ); 
    9696                                child = ( bool ) mxArray2bin ( value ); 
    97                         } 
     97                        } else { 
    9898                        if ( mxIsStruct ( value ) ) { 
    9999                                Setting &child = setting.add ( key, Setting::TypeGroup ); 
    100100                                fillGroup ( child, value ); 
    101                         } 
     101                        } else { 
    102102                        if ( mxIsCell ( value ) ) { 
    103103                                Setting &child = setting.add ( key, Setting::TypeList ); 
    104104                                fillList ( child, value ); 
    105                         } 
     105                        } else { 
    106106                        if ( mxIsNumeric ( value ) ) { 
    107107                                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                         
    110112                                Setting &child = setting.add(key, Setting::TypeInt64); 
    111113                                child = (long)value; 
    112114                        } 
     115                        } 
     116                        } 
     117                        } 
     118                                } 
    113119                } 
    114120        }