00001 #include "../bdm/stat/libDS_ui.h" 00002 00020 class UImexDS: public UIbuilder{ 00021 public: 00022 UImexDS():UIbuilder("mexDS"){}; 00023 bdmroot* build(Setting &S) const{ 00024 mat Data; 00025 ivec rids; 00026 ivec tds; 00027 try{ 00028 Data = mxArray2mat(mexGetVariable("base",S["varname"])); 00029 rids=getivec(S["rids"]); 00030 tds = getivec(S["tds"]); 00031 } 00032 catch UICATCH ; 00033 00034 MemDS* M=new MemDS(Data,rids,tds); 00035 RV* r; UIbuild(S["rv"],r); 00036 RV ru=RV(); 00037 M->set_rvs(*r,ru); 00038 return M; 00039 }; 00040 }; 00041 UIREGISTER(UImexDS);