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