Show
Ignore:
Timestamp:
09/16/09 22:52:42 (15 years ago)
Author:
smidl
Message:

doc - new pattern for from_setting for pdfs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/mex/config2mxstruct.cpp

    r568 r621  
    33 
    44void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { 
    5         if (n_input>0){ 
    6                 string filename = mxArray2string(input[0]); 
    7                 try{ 
    8                         UImxConfig C (filename.c_str()); 
    9                         if (n_output>0) 
    10                                 output[0] = mxDuplicateArray(C.mxconfig); 
    11                 }catch(SettingException xcptn){ 
    12                         cout<<"Error in:" + string(xcptn.getPath()) <<endl; 
    13                 } 
    14                 catch(exception e){ 
     5        if ( n_input>0 ) { 
     6                string filename = mxArray2string ( input[0] ); 
     7                try { 
     8                        UImxConfig C ( filename.c_str() ); 
     9                        if ( n_output>0 ) 
     10                                output[0] = mxDuplicateArray ( C.mxconfig ); 
     11                } catch ( SettingException xcptn ) { 
     12                        cout<<"Error in:" + string ( xcptn.getPath() ) <<endl; 
     13                } catch ( exception e ) { 
    1514                        cout <<"Error: " << e.what() <<endl; 
    1615                }