root/applications/bdmtoolbox/mex/config2mxstruct.cpp @ 1011

Revision 756, 0.5 kB (checked in by mido, 14 years ago)

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

  • Property svn:eol-style set to native
Line 
1#include <base/user_info.h>
2#include <itpp/itmex.h>
3#include <mex/mex_parser.h>
4
5using namespace bdm;
6
7void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) {
8        if ( n_input>0 ) {
9                string filename = mxArray2string ( input[0] );
10                try {
11                        if ( n_output>0 )
12                        {
13                                UIFile C ( filename.c_str() );
14                                output[0] = UImxArray::create_mxArray( C );
15                        }
16                } catch ( SettingException xcptn ) {
17                        cout<<"Error in:" + string ( xcptn.getPath() ) <<endl;
18                } catch ( exception e ) {
19                        cout <<"Error: " << e.what() <<endl;
20                }
21        }
22}
Note: See TracBrowser for help on using the browser.