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
|
Rev | Line | |
---|
[411] | 1 | #include <base/user_info.h> |
---|
[756] | 2 | #include <itpp/itmex.h> |
---|
| 3 | #include <mex/mex_parser.h> |
---|
[371] | 4 | |
---|
[756] | 5 | using namespace bdm; |
---|
| 6 | |
---|
[371] | 7 | void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { |
---|
[621] | 8 | if ( n_input>0 ) { |
---|
| 9 | string filename = mxArray2string ( input[0] ); |
---|
| 10 | try { |
---|
| 11 | if ( n_output>0 ) |
---|
[756] | 12 | { |
---|
| 13 | UIFile C ( filename.c_str() ); |
---|
| 14 | output[0] = UImxArray::create_mxArray( C ); |
---|
| 15 | } |
---|
[621] | 16 | } catch ( SettingException xcptn ) { |
---|
| 17 | cout<<"Error in:" + string ( xcptn.getPath() ) <<endl; |
---|
| 18 | } catch ( exception e ) { |
---|
[568] | 19 | cout <<"Error: " << e.what() <<endl; |
---|
[411] | 20 | } |
---|
| 21 | } |
---|
[371] | 22 | } |
---|