source:
issm/oecreview/Archive/21724-22754/ISSM-22366-22367.diff@
22755
Last change on this file since 22755 was 22755, checked in by , 7 years ago | |
---|---|
File size: 1.2 KB |
-
TabularUnified ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp
845 845 }/*}}}*/ 846 846 GenericOption<char*>* OptionCharParse( char* name, const mxArray* prhs[]){ /*{{{*/ 847 847 848 GenericOption<char*> *ochar = NULL;849 850 848 /*check and parse the name */ 851 ochar=new GenericOption<char*>();849 GenericOption<char*>* ochar=new GenericOption<char*>(); 852 850 ochar->name =xNew<char>(strlen(name)+1); 853 851 memcpy(ochar->name,name,(strlen(name)+1)*sizeof(char)); 854 852 … … 856 854 if (!mxIsClass(prhs[0],"char")){ 857 855 _error_("Value of option \"" << ochar->name << "\" must be class \"char\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 858 856 } 859 FetchData(&ochar->value,&ochar->numel,&ochar->ndims,&ochar->size,prhs[0]); 857 //FetchData(&ochar->value,&ochar->numel,&ochar->ndims,&ochar->size,prhs[0]); 858 FetchData(&ochar->value,prhs[0]); 859 ochar->numel = strlen(name); 860 ochar->ndims = 2; 861 ochar->size = xNew<int>(2); 862 ochar->size[0] = ochar->numel; 863 ochar->size[1] = 1; 860 864 861 865 return(ochar); 862 866 }/*}}}*/
Note:
See TracBrowser
for help on using the repository browser.