|
Revision 756, 0.5 kB
(checked in by mido, 16 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 | |
|---|
| 5 | using namespace bdm; |
|---|
| 6 | |
|---|
| 7 | void 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 | } |
|---|