Changeset 162 for trunk/src/matlab/rpLibChildren.cc
- Timestamp:
- Jan 31, 2006 9:15:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/matlab/rpLibChildren.cc
r155 r162 41 41 RpLibrary* child = NULL; 42 42 RpLibrary* retLib = NULL; 43 char* path = NULL;43 std::string path = ""; 44 44 45 45 /* Check for proper number of arguments. */ 46 if (nrhs != 3) 46 if (nrhs != 3) { 47 47 mexErrMsgTxt("Three input required."); 48 else if (nlhs > 2) 49 mexErrMsgTxt("Too many output arguments."); 48 } 50 49 51 50 libIndex = getIntInput(prhs[0]); … … 53 52 childIndex = getIntInput(prhs[2]); 54 53 55 /* Call the C subroutine. */54 /* Call the C++ subroutine. */ 56 55 if ( (libIndex > 0) && 57 ( path)&&56 (!path.empty()) && 58 57 (childIndex >= 0) ) { 58 59 59 lib = getObject_Lib(libIndex); 60 60 … … 64 64 65 65 if (lib) { 66 retLib = rpChildren(lib,path,child);66 retLib = lib->children(path,child); 67 67 retLibIndex = storeObject_Lib(retLib); 68 68 if (retLibIndex) {
Note: See TracChangeset
for help on using the changeset viewer.