Show
Ignore:
Timestamp:
12/28/09 17:02:37 (14 years ago)
Author:
mido
Message:

odladen FindMatlab?.cmake
trida UImxConfig smazana a nahrazena statickou funkci UImxArray::create_mxArray(), a podle toho upravene zdrojaky
odstranen abort ze shared pointeru

Files:
1 modified

Legend:

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

    r730 r756  
    2424        RV::clear_all(); 
    2525        //CONFIG 
    26         if (!mxIsStruct(input[0])) mexErrMsgTxt("Given input is not a struct."); 
     26        UImxArray Cfg(input[0]); 
     27        Cfg.writeFile("epdf_sample_mat.cfg"); 
     28        shared_ptr<epdf> ep=UI::build<epdf>(Cfg); 
    2729 
    2830        int nos=10; 
    29         if (n_input>1) {nos = (int)(*mxGetPr(input[1]));} 
    30          
    31         UImxArray Cfg(input[0]); 
    32         Cfg.writeFile("epdf_sample_mat.cfg"); 
    33  
    34         shared_ptr<epdf> ep=UI::build<epdf>(Cfg.getRoot()); 
     31        if (n_input>1) {nos = (int)(*mxGetPr(input[1]));}        
    3532         
    3633        if ( n_output<1 ) mexErrMsgTxt ( "No output - nothing to do!" );